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

Post New Answer

More C Interview Questions

In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  


Why ordinary variable store only one value  

0 Answers  


How to find a missed value, if you want to store 100 values in a 99 sized array?

0 Answers   Honeywell, Zomato,


What is #include stdlib h?

0 Answers  


C program to read the integer and calculate sum and average using single dimensional array

0 Answers  


Explain the use of 'auto' keyword in c programming?

0 Answers  


what is d pitfalls of registers variables

3 Answers   TCS,


Is it possible to create recycle bin in mobiles?

2 Answers  


Which driver is a pure java driver

0 Answers   Vertex,


What are two dimensional arrays alternatively called as?

0 Answers  


Is c is a high level language?

0 Answers  


Explain low-order bytes.

0 Answers  


Categories