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 does %c mean in c?
What are reserved words?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What are reserved words with a programming language?
What is void main ()?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
program to convert a integer to string in c language'
What is the easiest sorting method to use?
FILE PROGRAMMING
What is wrong with this declaration?
Differentiate between ordinary variable and pointer in c.
Explain the difference between malloc() and calloc() function?
What is scope of variable in c?
Why dont c comments nest?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }