What is incorrect among the followingA recursive functionA. calls itselfB. is equivalent to a loopC. has a termination conditionD. does not have a return value at all
Which of the following go out of the loop if expn 2 becoming falseA. while(expn 1){...if(expn 2)continue;}B. while(!expn 1){if(expn 2)continue;...}C. do{..if(expn 1)continue;..}while(expn 2);D. while(!expn 2){if(expn 1)continue;..}
Consider the following programmain(){unsigned int i=10;while(i>=0) { printf("%u",i) i--; }}How many times the loop will get executedA.10B.9C.11D. infinite
Latest Answer: ya answer is FREE() bczmalloc() is used to allocate single block of memorycalloc() is used to allocate multible blocks of memoryrealloc() is used to reallocate the allocated memorybut free()is used to deallocate the memory ...
Consider the following programmain(){int a[5]={1,3,6,7,0};int *b;b=&a[2];}The value of b[-1] isA. 1B. 3C. -6D. none
# define prod(a,b)=a*bmain(){int x=2;int y=3;printf("%d",prod(x+2,y-10));}the output of the program isA. 8B. 6C. 7D. None
Consider the following program segmentint n, sum=1;switch(n){case 2:sum=sum+2;case 3:sum*=2;break;default: sum=0;}If n=2, what is the value of sumA. 0B. 6C. 3D. None of these
Identify the incorrect one1.if(c=1)2.if(c!=3)3.if(a
Latest Answer: ans:C)%x ...
Find the output of the following programmain(){int x=5, *p;p=&xprintf("%d",++*p);}A. 5B. 6C. 0D. none of these
View page << Previous 2 3 4 5 [6] 7 8 9 Next >>

Go Top