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
What is n in c?
What is call by value in c?
Explain high-order and low-order bytes.
Can you write the algorithm for Queue?
Explain what are multibyte characters?
Why c is faster than c++?
What is character constants?
Explain continue keyword in c
Tell me is null always defined as 0(zero)?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What is the difference between #include
What are global variables and explain how do you declare them?
What is meant by realloc()?
write a program to display all prime numbers
What is the difference between c &c++?