C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a declaration must occur first. A definition occurs once, but a declaration may occur many times. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. Both can occur multiple times, but a declaration must occur first. A definition occurs once, but a declaration may occur many times. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Error Will make an infinite loop. None of these. Some address will be printed. Error Will make an infinite loop. None of these. Some address will be printed. 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 16 64 None of These 4 16 64 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, III and IV I, II and III II and III I and II III and IV I, III and IV I, II and III II and III I and II III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Compiler Error 6 5 Garbage Value Compiler Error 6 5 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 Infinite Loop None of these 5 5 5 5 5 Compilation Error 5 4 3 2 1 Infinite Loop None of these 5 5 5 5 5 Compilation Error ANSWER DOWNLOAD EXAMIANS APP