main()
{
int i=400,j=300;
printf("%d..%d");
}
Answer Posted / laienjam rosan singh
In doing so, the values of i and j will be inserted into
the stack and at the time of displaying the values, LIFO
order is followed. For example in this question 400 is
inserted first and 300 second bcos i=400 is declared first.
But at the time of displaying on the screen using printf,
300 will come first as it follows LIFO. Again it is
important to note down that printf will display only the
two uppermost values in the stack in LIFO order as
default.If the code is modified as
main()
{
int i=400,j=300,k=500;
printf("%d..%d");
}
then the output is 500..300.It is because of the fact that
printf take only two uppermost values from the stack LIFO
order to be displayed on the screen.
Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is a pointer on a pointer in c programming language?
What is d scanf?
What is function what are the types of function?
What does 3 mean in texting?
What is pointer to pointer in c language?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
write a program for the normal snake games find in most of the mobiles.
what is different between auto and local static? why should we use local static?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
Is c pass by value or reference?
What are the different types of control structures?
What is extern keyword in c?
What is data structure in c language?
How can you invoke another program from within a C program?
What are external variables in c?