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
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
what is the mean of c languages.
what does keyword ‘extern’ mean in a function declaration?
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?
What is 2c dna?
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.
What standard functions are available to manipulate strings?
What are two dimensional arrays alternatively called as?
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???????????
c program to manipulate x=1!+2!+3!+...+n! using recursion
What is scope and lifetime of a variable in c?