Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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?

5 Answers  


What is the best way to store flag values in a program?

0 Answers  


What are data breakpoints?

3 Answers   Adobe,


What is output redirection?

0 Answers  


When should a type cast be used?

0 Answers  


Explain how can you avoid including a header more than once?

0 Answers  


What is NULL pointer?

0 Answers   Infosys,


what does " calloc" do?

7 Answers   Cadence, Logos,


Explain heap and queue.

0 Answers   Aricent,


what is the flow of execution in cprogram? ex:printf();,scanf();

2 Answers  


write a programming in c language, 1 3 5 7 9 11

2 Answers   NIIT,


All technical questions

0 Answers   TCS,


Categories