C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, III and IV III and IV II and III I, II and III I and II I, III and IV III and IV II and III I, II and III I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 0 Error 10..10 10..50 0 Error 10..10 10..50 ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command has # as the first character comes before the first executable statement need not start on the first column need not start on a new line has # as the first character comes before the first executable statement need not start on the first column need not start on a new line ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 Compiler Error None of These sizeof(i)=1 sizeof(i)=2 Compiler Error None of These sizeof(i)=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The program will not enter into the loop. The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. Prints the value of 0 one time only. The program will not enter into the loop. The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. Prints the value of 0 one time only. ANSWER DOWNLOAD EXAMIANS APP
C Programming 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? 24 12 It will not compile because not enough initializers are given 7 6 24 12 It will not compile because not enough initializers are given 7 6 ANSWER DOWNLOAD EXAMIANS APP