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

There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

0 Answers  


what is the mean of c languages.

1 Answers   Polaris,


what does keyword ‘extern’ mean in a function declaration?

1 Answers   Emerson,


which of the function operator cannot be over loaded a) <= b)?: c)== d)*

10 Answers   Cisco, CTS, Google, HCL, HP,


What is substring in c?

0 Answers  






What is 2c dna?

0 Answers  


how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.

3 Answers  


What standard functions are available to manipulate strings?

0 Answers  


What are two dimensional arrays alternatively called as?

0 Answers  


can you explain in brief what is "r+" mode in a file... i know that it si used to read and modify rhe existing content.... but explalanation about the file pointer in "r+" mode i wann to know???????????

2 Answers   Cognizant,


c program to manipulate x=1!+2!+3!+...+n! using recursion

1 Answers   TCS,


What is scope and lifetime of a variable in c?

0 Answers  


Categories