C Programming int a[5] = {1,2,3}What is the value of a[4]? 2 Garbage Value 0 3 1 2 Garbage Value 0 3 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 10 20 10 10 20 20 Run time error 10 20 10 10 20 20 Run time error 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. There is no difference between them. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition 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 declaration must occur first. Both can occur multiple times, but a definition must occur first. A declaration occurs once, but a definition may occur many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when Initialization is a part of definition It is a formal parameter It is a declaratrion All of these Initialization is a part of definition It is a formal parameter It is a declaratrion All of these ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? It will not compile because not enough initializers are given 12 6 24 7 It will not compile because not enough initializers are given 12 6 24 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 b = 4, c = 6 b = 3, c = 6 ANSWER DOWNLOAD EXAMIANS APP