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
Who developed c language and when?
write a program in c to print **** * * * * ****
How can I handle floating-point exceptions gracefully?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
palindrome for strings and numbers----Can anybody do the prog?
6 Answers CTS, TCS, Vipro Lifescience Pvt,
What are the 4 types of programming language?
what is difference between ANSI structure and C99 Structure?
what is output of the following statetment?Printf(“%x”, -1<<4); ?
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
what is the differance between pass by reference and pass by value.
How can I sort more data than will fit in memory?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()