#include <stdio.h>
int main()
{
int i=5;
printf("%d %d %d %d %d", --i,i--,++i,--i,i);
return 0;
}
abhishekgahoi 0 Newbie Poster
Recommended Answers
Jump to Post#include <stdio.h>
int main()
{
int i=5;
printf("%d %d %d %d %d", --i,i--,++i,--i,i);return 0;
}
Jump to Post> please reply if I am mistaken
You are mistaken.
Read the link Aia posted.Trying to rationalise what you expect to happen, or merely posting what your current compiler gives you is no way to go.
All 7 Replies
Aia 1,977 Nearly a Posting Maven
Salem commented: Excellent link +11
alsoumhi 0 Junior Poster in Training
Salem 5,265 Posting Sage
alsoumhi 0 Junior Poster in Training
Salem 5,265 Posting Sage
twomers 408 Posting Virtuoso
Aia 1,977 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.