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 / suchita

the answer is 10 bcoz no increment statement in that loop. if
increment statement is there then definitely the value of
static variable is increased. otherwise it is fixed.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you tell whether a program was compiled using c versus c++?

1053


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1979


When should the volatile modifier be used?

1117


What is a null pointer in c?

1140


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15741


Process by which one bit pattern in to another by bit wise operation is?

1114


program to convert a integer to string in c language'

2413


what is stack , heap ,code segment,and data segment

2644


What is property type c?

1051


How do you override a defined macro?

1215


Do you know the difference between exit() and _exit() function in c?

1020


Tell us the use of fflush() function in c language?

1097


When should the const modifier be used?

1064


Explain pointers in c programming?

1070


What is use of pointer?

1020