What is the output of the program, if integer occupies 2 bytes memory?union{int a;char b;char c[10];}u1;void main(){int l=sizeof(u1);printf("%d",l);getch();}A. 13B. 10C. 16D. None of the above
B
What is the output of the program?void main(){fork();printf(" Hello World");getch();}A. Hello WorldB. Hello World Hello WorldC. Error MessageD. None of these
B
What is the output of the programvoid main(){int i,j,k;i=2;j=4;k=i++>j&2;printf("%dn",k);if(++k && ++i<--j|| i++){j=++k;}printf(" %d %d %d",i,-j--,k);getch();}A. 4,-3,2B. 5,-3,2C. 4,-2,2D. 5,-2,2
D
Which of the following is not true in case of command line arguments?A. The argc parameter is used to hold the number of arguments in the command line and is an integerB. The argv parameter is a pointer to an array of a character pointer and each one points to command line argumentsC. The argv[1] always point to program nameD. None of above
C
A
Latest Answer: A function cannot retyrn a value without declaring return statement so it gives syntax error ...
What is the output of the program?#include#include#define sqr(a) a*avoid main(){int a=10,b=1,c;c=sqr(10+1);printf("Sqr Root of (10+1)is %d", c);getch();}A. 121B. 21C. 13D. Syntax Error
B
What is the output of the program?#include#includevoid main(){int i,j=20;clrscr();for(i=1;i<3;i++){printf("%d,",i);continue;printf("%d",j);break;}getch();}A. 1,20B. 1,20,1,20C. 1,2D. 1,2,20,20
C
What is the output of the program?#include#includevoid main(){int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);clrscr();printf("%d",i);getch();}A. 49B. compile errorC. 51D. 48
B
What is the output of the program?#include#includevoid main(){char *st1[3]= {"Hello","World","Oracle"};*st1=st1[2];st1[1]=*st1;free(st1[0]);free(st1[1]);clrscr();printf("%s %s %s",st1,st1[1],st1[2]);getch();}A. Garbage Garbage OracleB. Oracle Oracle OracleC. Hello World OracleD. Core Dump cannot print after freeing the memory
D
Consider the following structureStruct {int data;struct node *prev;struct node *next;}NODE;NULL <-- 5 --> 8 --> 10 --> NULLp <-- q <-- rWhat will be the value of r-->prev-->-->next-->data?A. 8B. NullC. 5D. 10
D
View page << Previous 1 2 [3] 4 Next >>

Go Top