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
will u please send me the placement papers to my mail???????????????????
What are reserved words with a programming language?
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?
What is the acronym for ansi?
What is variable and explain rules to declare variable in c?
Explain how can I open a file so that other programs can update it at the same time?
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?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is class and object in c?
Why c language?
What is a pointer variable in c language?
What is define c?
How can I swap two values without using a temporary?
What does typedef struct mean?
Why we use break in c?