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();
}
No Answer is Posted For this Question
Be the First to Post Answer
What is data types?
What is the best way to store flag values in a program?
what are bit fields in c?
What is a struct c#?
how to impliment 2 or more stacks in a single dimensional array ?
What are the 4 types of unions?
simple program of graphics and their output display
What is C++
which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none
How to Throw some light on the splay trees?
What does s c mean in text?
Difference between Shallow copy and Deep copy?