TRUE
FALSE
How many times the printf statement within the while loop will be executed?
int x=1; while(x=0) printf("hello");
1
0
infinite
2
int &p;
int *p[10];
int **p;
int *p[ ];
register
static
extern
auto
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
What will be the output of the following code?
int main() { int x,y,z; x='1'-'0'; /* line-1 */ y='a'-'b'; /* line-2 */ z=x+y; printf("%d",z); }
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
ptr++
*ptr
++ptr
++*ptr
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
main() { int x = 0, y = 0; if(x > 0) if(y > 0) printf("True"); else printf("False"); }
Blank screen
True
False
Error because of dangling else problem