0

While calling the function how the output is 12 11 12? It will be helpful if anyone give me an explanation on how the priority works while calling the function?

My code

#include <stdio.h>

void prin(int, int, int);

 int main(void)
{
  int a=10;
  prin(a,a++,++a);

  return 0;
}


void prin(int a, int b, int c)
{
     printf("%d %d %d\n",a,b,c);
}
  • See for example [Why can't we mix increment operators like i++ with other operators?](https://software.codidact.com/posts/278384) – Lundin Oct 26 '21 at 07:31

0 Answers0