Let C compiler to figure out the operator priority - C Operator

C examples for Operator:Arithmetic Operator

Description

Let C compiler to figure out the operator priority

Demo Code

#include <stdio.h>
int main()//  w  w  w  . j ava2 s. com
{
   printf("%d",100+5*2-60/3);
   int total;
   total=100-25*2;
   printf("Tomorrow you will have %d magic pellets.\n",total);
   return(0);
}

Result


Related Tutorials