Determine Output:#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} None of These Compiler Error 50 10 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop Compilation Error None of these 5 4 3 2 1 5 5 5 5 5 TRUE ANSWER : ? YOUR ANSWER : ?
If integer needs two bytes of storage, then maximum value of an unsigned integer is None of these 216 215 215 – 1 216 – 1 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);} 2, 1, 15 2, 3, 20 1, 2, 5 3, 2, 15 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} None of These Some address will be printed make an infinite loop Error TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is a complete function? int funct(); None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } TRUE ANSWER : ? YOUR ANSWER : ?
For 16-bit compiler allowable range for integer constants is ________? -32767 to 32768 -32668 to 32667 -3.4e38 to 3.4e38 -32768 to 32767 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int c = - -2; printf("c=%d", c);} Error 1 -2 2 TRUE ANSWER : ? YOUR ANSWER : ?
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 7 12 6 24 It will not compile because not enough initializers are given TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 1 2 0 0 0 0 2 1 0 0 1 3 1 TRUE ANSWER : ? YOUR ANSWER : ?