Posts

Showing posts with the label C Post-increment operator

C Program to implement Post-increment operator (p++)

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