C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The variable must always be the letter i when using a for loop. The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The commas should be semicolons. The variable must always be the letter i when using a for loop. The increment should always be ++k . The variable k can’t be initialized. There should be a semicolon at the end of the statement. The commas should be semicolons. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} None of These Compiler Error GOOD GOOD BAD None of These Compiler Error GOOD GOOD BAD ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of macros All of these Takes care of include files Acts before compilation Takes care of conditional compilation Takes care of macros All of these Takes care of include files Acts before compilation Takes care of conditional compilation ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} Compiler Error None of These sizeof(i)=2 sizeof(i)=1 Compiler Error None of These sizeof(i)=2 sizeof(i)=1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Garbage value 6 Error 3 Garbage value 6 Error 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I and II I, II and III III and IV I, III and IV II and III I and II I, II and III III and IV I, III and IV II and III ANSWER DOWNLOAD EXAMIANS APP