C Programming What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); Infinite loop 9 10 11 12 13 10 11 12 13 14 15 10 11 12 13 14 None of these Infinite loop 9 10 11 12 13 10 11 12 13 14 15 10 11 12 13 14 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h Garbage Value Error hi followed by garbage value hi h Garbage Value Error hi followed by garbage value hi ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45545 54544 45445 54554 45545 54544 45445 54554 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 4 2 4 5 8 5 5 2 5 5 2 4 4 2 4 5 8 5 5 ANSWER DOWNLOAD EXAMIANS APP
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. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. There is no difference between them. 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. Both can occur multiple times, but a definition must occur first. There is no difference between them. Both can occur multiple times, but a declaration must occur first. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 0 Garbage value 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile 0 0 Garbage value 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile ANSWER DOWNLOAD EXAMIANS APP