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 increment should always be ++k . 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 variable k can’t be initialized. The commas should be semicolons. The increment should always be ++k . The variable must always be the letter i when using a for loop. There should be a semicolon at the end of the statement. 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 6 It will not compile because not enough initializers are given 7 24 12 6 It will not compile because not enough initializers are given 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = abc(10); printf("%d", --i);}int abc(int i){ return(i++);} 9 None of these. 11 10 9 None of these. 11 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define square(x) x*x void main(){ int i; i = 64/square(4); printf("%d", i); } 4 64 16 None of These 4 64 16 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} Some address will be printed None of These Error make an infinite loop Some address will be printed None of These Error make an infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi Error h hi followed by garbage value Garbage Value hi Error h hi followed by garbage value Garbage Value ANSWER DOWNLOAD EXAMIANS APP