C Programming What is the difference between a declaration and a definition of a variable? A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a definition must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a definition must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a declaration must occur first. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} Error hi h hi followed by garbage value Garbage Value Error hi h hi followed by garbage value Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 3 10 5 4 4 10 5 4 3 10 5 5 5 10 5 3 4 10 5 3 3 10 5 4 4 10 5 4 3 10 5 5 5 10 5 3 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 3, 2, 15 2, 3, 20 2, 1, 15 1, 2, 5 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();} Compilation Error Infinite Loop None of these 5 5 5 5 5 5 4 3 2 1 Compilation Error Infinite Loop None of these 5 5 5 5 5 5 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?#include void main(){ int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k));} 444 000 333 Garbage Value 433 444 000 333 Garbage Value 433 ANSWER DOWNLOAD EXAMIANS APP