Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} Error c A 65 TRUE ANSWER : ? YOUR ANSWER : ?
In an expression involving || operator, evaluationI. Will be stopped if one of its components evaluates to falseII. Will be stopped if one of its components evaluates to trueIII. Takes place from right to leftIV. Takes place from left to right II and IV I and III II and III III and IV I and II TRUE ANSWER : ? YOUR ANSWER : ?
A C variable cannot start with A number A special symbol other than underscore An alphabet Both of the above TRUE ANSWER : ? YOUR ANSWER : ?
For 16-bit compiler allowable range for integer constants is ________? -32768 to 32767 -32668 to 32667 -3.4e38 to 3.4e38 -32767 to 32768 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} None of These GOOD BAD GOOD Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54544 54554 45545 55445 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#include<stdio.h>void main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 3, 2, 15 2, 3, 20 1, 2, 5 2, 1, 15 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi followed by garbage value Garbage Value Error hi h TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} Compiler Error None of These 10 50 TRUE ANSWER : ? YOUR ANSWER : ?
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 a = 4, c = 8 a = 3, c = 8 TRUE ANSWER : ? YOUR ANSWER : ?