Browsing all articles tagged with Undefined behaviour in c - Share Programming Tips
Sep
27

How post-increment & pre-increment both are evaluated in function argument?

While surfing internet i came to following scenario. The behavior of bellow’s function i can not understand .Can you know why this output comes ?

#include<stdio.h>
   int main() {
   int a=5;
   printf("%d %d %d",a++,a++,++a);
   return 0;
   } 

read more

Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

35 posts
saurabh
21 posts
9 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link