C Programming What is right way to Initialize array? int n{} = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; 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? 7 12 6 It will not compile because not enough initializers are given 24 7 12 6 It will not compile because not enough initializers are given 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is correct way to define the function fun() in the below program?#includevoid main(){ int a[3][4]; fun(a);} void fun(int *p[][4]){} void fun(int *p[3][4]){} void fun(int p[][4]){} void fun(int *p[4]){} None of these void fun(int *p[][4]){} void fun(int *p[3][4]){} void fun(int p[][4]){} void fun(int *p[4]){} None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} None of These i = 1, +i = 1 i = -1, +i = -1 i = -1, +i = 1 None of These i = 1, +i = 1 i = -1, +i = -1 i = -1, +i = 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff4 fff2 fff3 fff1 fff0 fff4 fff2 fff3 fff1 fff0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ printf("%p", main);} Some address will be printed Error make an infinite loop None of These Some address will be printed Error make an infinite loop None of These ANSWER DOWNLOAD EXAMIANS APP