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 k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . The variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. The increment should always be ++k . ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 4, 4 2, 2 2, 0 2, 4 0, 2 4, 4 2, 2 2, 0 2, 4 0, 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error 4 Runtime error 1 2 3 4 4 5 6 7 Syntax error 4 Runtime error 1 2 3 4 4 5 6 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} three Error zero None of These three Error zero None of These 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, III and IV III and IV I, II and III II and III I and II I, III and IV III and IV I, II and III II and III ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} 1 0 no error no output complier error 1 0 no error no output complier error ANSWER DOWNLOAD EXAMIANS APP