C Programming What is the difference between a declaration and a definition of a variable? There is no difference between them. 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. A declaration occurs once, but a definition may occur many times. There is no difference between them. 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. A declaration occurs once, but a definition may occur many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. II and III II and IV I and II III and IV I and III II and III II and IV I and II III and IV I and III 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 does the following declaration mean?int (*ptr)[10]; ptr is an array of 10 integers ptr is a pointer to an array of 10 integers ptr is an pointer to array ptr is array of pointers to 10 integers ptr is an array of 10 integers ptr is a pointer to an array of 10 integers ptr is an pointer to array ptr is array of pointers to 10 integers ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} Compilation error 13 11 14 12 Compilation error 13 11 14 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 4 2 2 3 4 2 3 3 3 2 4 2 2 3 4 2 3 3 3 ANSWER DOWNLOAD EXAMIANS APP