What is the output of the program, incremental operator - C Operator

C examples for Operator:Increment Decrement Operator

Description

What is the output of the program, incremental operator

Demo Code

#include <stdio.h>
int main()//from   ww  w.j a v a  2 s  .c om
{
   int a,b;
   a=10;
   b=0;
   printf("A=%d and B=%d before incrementing.\n",a,b);
   b=a++;
   printf("A=%d and B=%d after incrementing.\n",a,b);
   return(0);
}

Result


Related Tutorials