Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} 53 65 053 65 65 65 Syntax error 065 65 TRUE ANSWER : ? YOUR ANSWER : ?
void main(){ int a=10, b; b = a++ + ++a; printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed? 22 12 12 13 12 10 11 13 22 13 14 14 22 14 12 13 22 11 11 11 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hj grjeodt ij!gsjfoet hi friends None of These TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } Linking error Compiler Error 3 hello None of these TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Runtime error 4 5 6 7 Syntax error 4 1 2 3 4 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 Error 1 2 TRUE ANSWER : ? YOUR ANSWER : ?
If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 – 1 None of these 215 216 216 – 1 TRUE ANSWER : ? YOUR ANSWER : ?
A C variable cannot start with A special symbol other than underscore A number Both of the above An alphabet TRUE ANSWER : ? YOUR ANSWER : ?
What is right way to Initialize array? int n{} = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile Garbage value 0 TRUE ANSWER : ? YOUR ANSWER : ?