C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 1 1 2 1 1 2 2 2 1 1 2 1 1 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 5 5 5 5 5 None of These Infinite Loop 5 4 3 2 1 5 5 5 5 5 None of These Infinite Loop ANSWER DOWNLOAD EXAMIANS APP
C Programming What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a; 11 6 5 10 9 11 6 5 10 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? None of these void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } None of these void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? -1 2 Program do no return a value. 1 -1 2 Program do no return a value. 1 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 2 9 1 0.25 0.5 2 9 1 0.25 ANSWER DOWNLOAD EXAMIANS APP