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
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?
What is the best way to store flag values in a program?
What are data breakpoints?
What is output redirection?
When should a type cast be used?
Explain how can you avoid including a header more than once?
What is NULL pointer?
what does " calloc" do?
Explain heap and queue.
what is the flow of execution in cprogram? ex:printf();,scanf();
write a programming in c language, 1 3 5 7 9 11
All technical questions