What will be the output of the following code segment?
int a = 100, b = 74; if (a++ > 100 && b++ > 200) printf("High values with a = %d b = %d\n", a, b); if (a++ < 100 || b++ < 200) printf("Low values with a = %d b = %d\n", a, b);
How many times below for loop will be executed?
int main() { int i=0; for( ; ; ) printf("%d",i); return 0; }
How many times the printf statement within the while loop will be executed?
int x=1; while(x=0) printf("hello");
What will be the output of the following code?
main() { int x = 0, y = 0; if(x > 0) if(y > 0) printf("True"); else printf("False"); }