C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 1 Error 2 -2 1 Error 2 -2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1, 4 2, 3 2, 4 1 None of these 1, 4 2, 3 2, 4 1 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 17 20 19 -1 16 17 20 19 -1 16 ANSWER DOWNLOAD EXAMIANS APP
C Programming The type of the controlling expression of a switch statement cannot be of the type ........ long short float char int long short float char int ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 5 5 5 2 5 5 2 4 4 2 4 5 5 5 5 2 5 5 2 4 4 2 4 5 ANSWER DOWNLOAD EXAMIANS APP