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
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is use of integral promotions in c?
Explain low-order bytes.
What is formal argument?
What is sizeof in c?
How we can insert comments in a c program?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
Write a program to show the change in position of a cursor using c
What are pointers? Why are they used?
What is action and transformation in spark?
What is && in c programming?
What is switch in c?
Apart from dennis ritchie who the other person who contributed in design of c language.
Are pointers integer?