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 does == mean in texting?

1292


I have seen function declarations that look like this

1041


Can you write the algorithm for Queue?

2108


Explain can static variables be declared in a header file?

1150


What language is lisp written in?

1258


What is I ++ in c programming?

1113


What is calloc malloc realloc in c?

1056


How do you convert strings to numbers in C?

1219


Is printf a keyword?

1196


How is pointer initialized in c?

1021


What are the disadvantages of c language?

1191


develop algorithms to add polynomials (i) in one variable

2163


code for replace tabs with equivalent number of blanks

2157


What are the 5 types of inheritance in c ++?

1021


What is the default value of local and global variables in c?

1039