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

in linking some of os executables are linking name some of them

2124


Why is c so important?

1058


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1963


Is there any demerits of using pointer?

1065


What is a far pointer in c?

1038


What is the return type of sizeof?

1061


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1059


What is variables in c?

1045


What is the difference between functions getch() and getche()?

1092


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3683


What is a list in c?

1027


When should the const modifier be used?

1099


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1111


What is an auto keyword in c?

1096


Write a program in c to replace any vowel in a string with z?

1114