#include <iostream>
using namespace std;
int testFunc() {
int x = 10;
if( x == 5 ) {
int y;
y = 9; //breakpoint set here
}
return x;
}
int main() {
cout << "Hello world!" << endl;
return testFunc();
}
if (x==5)If "x" is a float or double (so not an integer) this behaviour is correct.
{
y++; //with a breakpoint here
}