C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 Garbage Value Error None of These 10 20 30 40 50 10 20 30 40 50 10 20 30 40 50 Garbage Value Error None of These 10 20 30 40 50 10 20 30 40 50 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 0.5 9 2 1 0.25 0.5 9 2 1 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?#include void main(){ int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k));} 000 444 433 Garbage Value 333 000 444 433 Garbage Value 333 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Syntax error Runtime error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 10, 10 0x1234ABCD, 0x1234ABCD, 0x1234ABCD Syntax error Runtime error 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 10, 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values 1 1 1 Error 0 0 0 garbage values 1 1 1 Error 0 0 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of macros All of these Takes care of conditional compilation Takes care of include files Acts before compilation Takes care of macros All of these Takes care of conditional compilation Takes care of include files Acts before compilation ANSWER DOWNLOAD EXAMIANS APP