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
in linking some of os executables are linking name some of them
Why is c so important?
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....
Is there any demerits of using pointer?
What is a far pointer in c?
What is the return type of sizeof?
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.
What is variables in c?
What is the difference between functions getch() and getche()?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is a list in c?
When should the const modifier be used?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is an auto keyword in c?
Write a program in c to replace any vowel in a string with z?