C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? fg efg defg bcdefg cdefg fg efg defg bcdefg cdefg ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is an pointer to array ptr is an array of 10 integers ptr is array of pointers to 10 integers ptr is a pointer to an array of 10 integers ptr is an pointer to array ptr is an array of 10 integers ptr is array of pointers to 10 integers ptr is a pointer to an array of 10 integers 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[3][4]){} void fun(int p[][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these void fun(int *p[3][4]){} void fun(int p[][4]){} void fun(int *p[4]){} void fun(int *p[][4]){} None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} A run time error will be generated. There will be a compilation error reported. Prints the value of 0 one time only. The program will not enter into the loop. The loop will run infinitely many times. A run time error will be generated. There will be a compilation error reported. Prints the value of 0 one time only. The program will not enter into the loop. The loop will run infinitely many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... stdin no such function in 'C'. stderr Data file string stdin no such function in 'C'. stderr Data file string ANSWER DOWNLOAD EXAMIANS APP