Answer Posted / pavan kumar b n
By making use of stack data structure.... i.e., first push
all the numbers and then pop them .. since stack is LIFO
order , the numbers get reversed....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between exit() and _exit() function?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is memcpy() function?
The difference between printf and fprintf is ?
Explain what is the concatenation operator?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Are there constructors in c?
Explain is it valid to address one element beyond the end of an array?
why programs in c are running with out #include
What is c method?
What are the 5 organizational structures?
How will you find a duplicate number in a array without negating the nos ?
What is huge pointer in c?
Can a pointer be null?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values