Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = 1, +i = 1 i = -1, +i = 1 i = -1, +i = -1 None of These 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 = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 TRUE ANSWER : ? YOUR ANSWER : ?
If integer needs two bytes of storage, then maximum value of an unsigned integer is None of these 216 215 – 1 216 – 1 215 TRUE ANSWER : ? YOUR ANSWER : ?
C Language developed at _________? AT & T's Bell Laboratories of USA in 1972 AT & T's Bell Laboratories of USA in 1970 Sun Microsystems in 1973 Cambridge University in 1972 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} 4 None of these 7 5 6 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 10 11 12 15 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 10 Infinite loop 0123456789 Syntax error 0 TRUE ANSWER : ? YOUR ANSWER : ?
The declarationint (*p) [5];means p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ TRUE ANSWER : ? YOUR ANSWER : ?
What is the difference between a declaration and a definition of a variable? There is no difference between them. Both can occur multiple times, but a declaration must occur first. A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a definition must occur first. TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error Equal None of these. Unequal TRUE ANSWER : ? YOUR ANSWER : ?