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
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
What are c header files?
explain what are pointers?
What is the difference between if else and switchstatement
Explain how do you convert strings to numbers in c?
The __________ attribute is used to announce variables based on definitions of columns in a table?
What are the benefits of c language?
Is there any possibility to create customized header file with c programming language?
What is the difference between mpi and openmp?
What is the use of header files?
What is the maximum length of an identifier?
Explain pointer. What are function pointers in C?
What is the explanation for the dangling pointer in c?
What is the meaning of && in c?
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.