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


Please Help Members By Posting Answers For Below Questions

write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2521


What are c header files?

775


explain what are pointers?

788


What is the difference between if else and switchstatement

1562


Explain how do you convert strings to numbers in c?

812


The __________ attribute is used to announce variables based on definitions of columns in a table?

950


What are the benefits of c language?

860


Is there any possibility to create customized header file with c programming language?

818


What is the difference between mpi and openmp?

979


What is the use of header files?

814


What is the maximum length of an identifier?

888


Explain pointer. What are function pointers in C?

825


What is the explanation for the dangling pointer in c?

883


What is the meaning of && in c?

744


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1836