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

what will be the output of the following program, justify?
#define TEST

int TEST getdata()
{
static i;
i+=10;
return i;

}

main()
{
int k;
k = getdata();
}


Answer Posted / rama krishna sidhartha

Since there is no output statement in this program there
output will not be displayed.

The output statement must be as follows :

printf("%d",k);

Then the output will be 10.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

will u please send me the placement papers to my mail???????????????????

1840


What are reserved words with a programming language?

1142


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1213


What is the acronym for ansi?

1051


What is variable and explain rules to declare variable in c?

1100


Explain how can I open a file so that other programs can update it at the same time?

1121


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1506


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1953


What is class and object in c?

1124


Why c language?

1080


What is a pointer variable in c language?

1112


What is define c?

1083


How can I swap two values without using a temporary?

1111


What does typedef struct mean?

1117


Why we use break in c?

1016