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


Please Help Members By Posting Answers For Below Questions

What happens if header file is included twice?

660


What is structure in c explain with example?

645


How can you invoke another program from within a C program?

620


What the advantages of using Unions?

677


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1788






What is c method?

539


List some of the static data structures in C?

766


What are called c variables?

576


What is static function in c?

639


How many bytes is a struct in c?

730


How do you determine a file’s attributes?

605


If the size of int data type is two bytes, what is the range of signed int data type?

596


Write a program to check palindrome number in c programming?

602


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

768


What is table lookup in c?

634