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
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
0 Answers Aegis, CDAC, Infosys,
How a string is stored in c?
please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(
What are the advantages and disadvantages of a heap?
In C language what is a 'dangling pointer'?
Do array subscripts always start with zero?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is bin sh c?
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.
What is build process in c?
What math functions are available for integers? For floating point?
How do you list a file’s date and time?