C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Will make an infinite loop. Some address will be printed. None of these. Error Will make an infinite loop. Some address will be printed. None of these. Error ANSWER DOWNLOAD EXAMIANS APP
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. 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. The variable k can’t be initialized. The commas should be semicolons. The increment should always be ++k . ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 1 11 Error 12 1 11 Error 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the base data type of a pointer variable by which the memory would be allocated to it? int No data type unsigned int float Depends upon the type of the variable to which it is pointing. int No data type unsigned int float Depends upon the type of the variable to which it is pointing. ANSWER DOWNLOAD EXAMIANS APP
C Programming A C variable cannot start with An alphabet Both of the above A number A special symbol other than underscore An alphabet Both of the above A number A special symbol other than underscore ANSWER DOWNLOAD EXAMIANS APP