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...

consider the following C code
main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
the final value of x is

Answer Posted / yogendra jain

6

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the deal on sprintf_s return value?

1070


What are the advantages of union?

1024


What is meant by errors and debugging?

1058


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2080


How can variables be characterized?

2132


What is #include cctype?

1077


What is a scope resolution operator in c?

1209


What does 3 periods mean in texting?

1015


write a programming in c to find the sum of all elements in an array through function.

2117


In C, What is the #line used for?

2099


Explain the difference between #include "..." And #include <...> In c?

987


Explain what are multibyte characters?

1114


Explain what is the difference between a free-standing and a hosted environment?

1128


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

1032


Write a program to reverse a linked list in c.

1068