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 / aditya
there is no print statement and hence there is no output.
If at all k is printed it will be 10.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is int main () in c?
What is the code in while loop that returns the output of given code?
What are shell structures used for?
Explain how are 16- and 32-bit numbers stored?
In a switch statement, explain what will happen if a break statement is omitted?
What do you mean by invalid pointer arithmetic?
What is variable initialization and why is it important?
Why c language?
What does c value mean?
What is preprocessor with example?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What is the purpose of macro in C language?
What oops means?
Explain the use of function toupper() with and example code?
What is difference between structure and union with example?