Recent questions in Programming and DS

168 votes
17 answers
4964
29 votes
7 answers
4967
1 votes
1 answer
4969
what is abstract data type ? please explain with example.
0 votes
4 answers
4971
int main(){ int n=1,sum =0; while(n<=10){ sum += n++*n++; } printf("Sum = %d\n",sum); return 0 }ans is 165 . i got 190.please explain??
0 votes
1 answer
4973
0 votes
1 answer
4974
1 votes
1 answer
4975
What is the output of the following program ? void main() { int x=40, y=30, z=80; if(x<y<z) printf(“\n Hello world”); else printf(“\nGood by”);} A] Hello worldB]G...
0 votes
1 answer
4976
int main(){ int a = 4,b = 5,c = 6; int k = ++a || ++b && c++; printf("%d %d %d %d",a,b,c,k); return 0; }o/p 5 5 6 1Above code will not increment b and c why??even the pre...
0 votes
1 answer
4978
1 votes
1 answer
4979
0 votes
3 answers
4980
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; }