20. main()
{
int i=5;
printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);
}
Answer:??????
Answers were Sorted based on User's Feedback
Answer / ashish
The only concept here is that the printf starts 'generating'
results from RHS to LHS.
Hence, in the process of generation: i=5; then --i=4; ++i=5;
i--=5(due to the postfix concept, but after finishing this
calculation i=4); now i++=4(after performing i++, the value
of 'i' is 5, but for printing, due to the postfix concept,
i=4, the current value of 'i' will be printed).
The printing happens in order from LHS to RHS. Hence these
values are printed as 4 5 5 4 5.
| Is This Answer Correct ? | 5 Yes | 1 No |
write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
What is information technology.
What does the message "automatic aggregate intialization is an ansi feature" mean?
swapping of two numbers without using third variable using AND and OR operators
What is pointer in c?
difference between function & structure
Write a function to find the area of a triangle whose length of three sides is given
Explain demand paging.
Can you tell me how to check whether a linked list is circular?
4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
How many levels of pointers have?