Posts

Showing posts with the label C -- Operator

C Program to implement Decrement Operator (--)

Image
// C Program to implement Decrement Operator (--) #include<stdio.h>                //header file declaration int main()                             // main method {         int p=15;                        //variable declaration         while(p>10)         {                   printf("Output is %d\n",p);                //print output                 p--;                                //decrement operator          } } OUTPUT: