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

Why is c so important?

0 Answers  


What is structure in c explain with example?

0 Answers  


my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details

2 Answers  


the operator for exponencation is a.** b.^ c.% d.not available

5 Answers   TCS,


What is the advantage of an array over individual variables?

0 Answers  






how to build a exercise findig min number of e heap with list imlemented?

0 Answers  


What is %s and %d in c?

0 Answers  


what is diference between return 0 and return NULL??

3 Answers  


What is the memory allocated by the following definition ? int (*x)[10];

4 Answers   ADITI, Wipro,


Symmetric technologies interview questions. For Computer science candidates the first round is a objective type written test consisting of 16 questions.It is very easy ,any police man can solve this. And next round is a written test consists of both objective and subjective .Total 40 question related to c,c++ and operating system related questions. And then a technical interview and give some program to solve with computer.The md is adamant person, whatever he says we have to accept that is the condition. And one more thing ,,,these interview is just for a formality..the company will select only innocent guys.. the person's without a backbone only they require.. And u have to submit the certificates this is the most important problem...So if you are not getting any other jobs..then only join with this... It is better to try for other company...And apart from that symmetric do a lot of projects..If a candidate can manage everything u can join and make good career with this company... The Md will normally speak rudely..but he is good person and he will give you a lot of very good chances to improve your career....but with cheap salary....

0 Answers   Symmetric Technologies,


What are the functions to open and close the file in c language?

0 Answers  


c program to arrange digits in a no in ascending and descending order

1 Answers  


Categories