Most viewed questions in Programming and DS

1 votes
0 answers
2321
void find(int x){ static int i=10,y=0; y=y+i; for(i;i>0;i=i-10){ if(x!=0) find(x-1); else{ printf("%d",y); } } }What will be output printed for find(4)?
0 votes
3 answers
2322
int f(int); int main() { int b; b = f(20); printf("%d",b); return 0; } int f(int a){ a>10 ?return(20):return 10; }
0 votes
1 answer
2326
Convert the following infix expression to postfix and prefixA^B^C^D
0 votes
1 answer
2328
3 votes
2 answers
2329
1 votes
1 answer
2330
Which of the following is the proper keyword or function to allocate memory in C?A. newB. mallocC. createD. value
1 votes
1 answer
2331
1 votes
1 answer
2332
0 votes
1 answer
2334
0 votes
1 answer
2336
Is there any error in statement *a++ ; // a is an integer pointer. If not please explain what will happen if a=a+1 happens at 1st step then we are left with *a; now ...
3 votes
0 answers
2337
The sum of all values printed by Rec (6) is _______.
1 votes
3 answers
2338
0 votes
1 answer
2339
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
0 votes
1 answer
2340
int main(){int a = 10;cout<<a++;return 0;} (A) 10(B) 11(C) 12(D) Not defined