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 happens if header file is included twice?
What is structure in c explain with example?
How can you invoke another program from within a C program?
What the advantages of using Unions?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is c method?
List some of the static data structures in C?
What are called c variables?
What is static function in c?
How many bytes is a struct in c?
How do you determine a file’s attributes?
If the size of int data type is two bytes, what is the range of signed int data type?
Write a program to check palindrome number in c programming?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is table lookup in c?