C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? defg efg cdefg fg bcdefg defg efg cdefg fg bcdefg ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); Infinite loop 10 11 12 13 14 10 11 12 13 14 15 9 10 11 12 13 None of these Infinite loop 10 11 12 13 14 10 11 12 13 14 15 9 10 11 12 13 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct output for the following program.#includevoid main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);} 50, 13, 24, 13 50, 13, 24, 50 50, 13, 11, 13 13, 13, 24, 13 13, 10, 24, 50 50, 13, 24, 13 50, 13, 24, 50 50, 13, 11, 13 13, 13, 24, 13 13, 10, 24, 50 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); -1 Compilation Error 33 0 1 -1 Compilation Error 33 0 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Error Garbage value 6 3 Error Garbage value 6 3 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);} None of these 30 20 25 24 None of these 30 20 25 24 ANSWER DOWNLOAD EXAMIANS APP