C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 4 3 3 2 2 3 4 2 3 2 4 3 3 2 2 3 4 2 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following pointer declaration?int *ptr, p; ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ptr is a pointer to integer, p is not. ptr and p both are not pointers to integer. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 1 -5 10 30 15 1 -5 10 30 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=5, j=6, z; printf("%d", i+++j);} 11 12 None of These 13 11 12 None of These 13 ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 8 7 9 5 6 8 7 9 5 6 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 Segmentation fault/runtime crash Compiler time error Undefined behavior 10 Segmentation fault/runtime crash Compiler time error Undefined behavior ANSWER DOWNLOAD EXAMIANS APP