C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[1] = 3 a[1] = 2 a[0] = 2 a[0] = 3 Compilation error a[1] = 3 a[1] = 2 a[0] = 2 a[0] = 3 Compilation error 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 5 2 4 4 5 5 5 2 5 5 2 4 5 2 4 4 5 5 5 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 54544 45545 45445 54554 54544 45545 45445 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{7} arr{6} arr[7] arr[6] None of these arr{7} arr{6} arr[7] ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 20 30 24 None of these 25 20 30 24 None of these 25 ANSWER DOWNLOAD EXAMIANS APP
C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 216 – 1 None of these 216 215 215 – 1 216 – 1 None of these 216 215 215 – 1 ANSWER DOWNLOAD EXAMIANS APP