C Programming What will happen after compiling and running following code?main(){ printf("%p", main); } Error None of these. Will make an infinite loop. Some address will be printed. Error None of these. Will make an infinite loop. Some address will be printed. 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);} 11 12 14 13 Compilation error 11 12 14 13 Compilation error ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. Both of the above We can change the pointer as well as the value pointed by it. We cannot change the pointer ptr itself. We cannot change the value pointed by ptr. Both of the above We can change the pointer as well as the value pointed by it. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 2, 4 2, 3 1 None of these 1, 4 2, 4 2, 3 1 None of these 1, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a definition must occur first. Both can occur multiple times, but a declaration must occur first. A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration 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 declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. There is no difference between them. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} Error 6 9 5 None of these Error 6 9 5 None of these ANSWER DOWNLOAD EXAMIANS APP