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

Can include files be nested?

1059


What does s c mean on snapchat?

1039


What are the types of data files?

1149


What is the use of typedef in structure in c?

917


Is c compiled or interpreted?

1129


Give basis knowledge of web designing ...

1981


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3246


Why is it usually a bad idea to use gets()? Suggest a workaround.

1689


Explain how does flowchart help in writing a program?

1061


Is fortran still used in 2018?

986


Can you please explain the difference between strcpy() and memcpy() function?

1015


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2145


what is the role you expect in software industry?

2085


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

1106


What are the two types of functions in c?

943