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

C examples for Operator:Increment Decrement Operator

Description

What is the output of the program, decrementing operator

Demo Code

#include <stdio.h>
int main()/*w  ww . j  ava2  s  . co  m*/
{
   int a,b;
   a=10;
   b=0;
   printf("A=%d and B=%d before decrementing.\n",a,b);
   b=a--;
   printf("A=%d and B=%d after decrementing.\n",a,b);
   return(0);
}

Result


Related Tutorials