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

proc() {

static i=10;
printf("%d",i);
}

If this proc() is called second time, what is the output?

Answer Posted / jeevan

There is not increment statement. In this case, always it
returs 10 only. even if 'i' is not static type, then also
it returns 10 only....... for confusing in interview, they
might have used 'static' key word here.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

965


What is 2 d array in c?

977


Where is c used?

1045


Describe the difference between = and == symbols in c programming?

1316


What is #include conio h?

963


Write a C program in Fibonacci series.

1058


What are the benefits of c language?

1125


Why is struct padding needed?

1041


When should a type cast be used?

975


Do you know pointer in c?

1006


What are high level languages like C and FORTRAN also known as?

1125


What are linked lists in c?

1104


Can you write the algorithm for Queue?

2045


What are qualifiers in c?

997


Explain the binary height balanced tree?

1138