C Programming What is right way to Initialize array? int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} no output 3 2 1 0 infinity loop 3 2 1 no output 3 2 1 0 infinity loop 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=5, j=6, z; printf("%d", i+++j);} 12 13 11 None of These 12 13 11 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 III and IV II and III I and II I, III and IV I, II and III III and IV II and III I and II I, III and IV I, II and III 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