TRUE
FALSE
What will be output if you will compile and execute the following c code?
int main() { int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0; }
2 6
4 6
2 5
4 5
What will be output if you will compile and execute the following C code?
int main(){ int check=2; switch(check){ case 1: printf("D.W.Steyn"); case 2: printf(" M.G.Johnson"); case 3: printf(" Mohammad Asif"); default: printf(" M.Muralidaran"); } return 0; }
M.G.Johnson
M.Muralidaran
M.G.Johnson Mohammad Asif M.Muralidaran
Compilation error
How many times "IndiaBIX" is get printed?
int main() { int x; for(x=-1; x<=10; x++) { if(x < 5) continue; else break; printf("IndiaBIX"); } return 0; }
Infinite times
11 times
0 times
10 times
cmp is a pointer to an void type.
cmp is a void type pointer variable.
cmp is a function that return a void pointer.
cmp function returns nothing.
switch
goto
go back
return
All of them let you define new values
All of them let you define new data types
All of them let you define new pointers
All of them let you define new structures
All of the following are valid expressions in ‘C’.
int a(char *s)
void b(int a[], int n)
float *c()
short d(long x)
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute