C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} 2 -2 Error 1 2 -2 Error 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 5 5 5 2 5 5 2 4 5 2 4 4 5 5 5 2 5 5 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} Compilation Error will print garbage value None of these. will print Hello World Compilation Error will print garbage value None of these. will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements? arr[6] None of these arr{6} arr{7} arr[7] arr[6] None of these arr{6} arr{7} arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 8 3 7 3 None of these 3 8 3 7 8 3 7 3 None of these 3 8 3 7 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[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 void fun(int *p[][4]){} void fun(int *p[3][4]){} ANSWER DOWNLOAD EXAMIANS APP