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 3 3 3 2 2 2 4 3 4 2 3 3 3 2 2 2 4 3 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command need not start on the first column comes before the first executable statement has # as the first character need not start on a new line need not start on the first column comes before the first executable statement has # as the first character need not start on a new line ANSWER DOWNLOAD EXAMIANS APP
C Programming The operator > and < are meaningful when used with pointers, if The pointers point to structure of similar data type. None of these. The pointers point to data of similar type. The pointers point to elements of the same array. The pointers point to structure of similar data type. None of these. The pointers point to data of similar type. The pointers point to elements of the same array. 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 10 -5 30 1 15 10 -5 30 1 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 12 14 15 13 Garbage Value 12 14 15 13 Garbage Value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } Some address will be printed H None of these. Hello Some address will be printed H None of these. Hello ANSWER DOWNLOAD EXAMIANS APP