void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / koushik ramesh
this program output is 12.
first is i++ is 5 only because this the post increment
first using the value after increment.
whenever i++ + the value of is 6.
++ i means this is the pre-increment.first increment
the value after using the variable this step i will become
7.
total is i++ =5
i++ + =6
++ i=7
i++ + ++i= 12. this is posted by Ramesh(MCA)Nizam
college.HYDERABAD
Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
how to find binary of number?
When we use void main and int main?
What are the characteristics of arrays in c?
write a c program for swapping two strings using pointer
What is the use of a ‘ ’ character?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
How can I ensure that integer arithmetic doesnt overflow?
Explain what are multibyte characters?
Explain what does a function declared as pascal do differently?
What does node * mean?
What is a void pointer? When is a void pointer used?
Explain what does the format %10.2 mean when included in a printf statement?
What is 1d array in c?
How can you increase the size of a dynamically allocated array?
What is the difference between array and pointer?