Relative Content

Tag Archive for cgcc

How does division by zero works in C++?

#include <iostream> using namespace std; int main() { cout << “main started”; int a = 10, b = 0; cout << a/b; cout << “main ending”; } The above written C++ code is not printing anything on online compiler when run on “OnlineGDB” with C++ 20 vesion. But the same program when run on g++-14 […]