Posts

Showing posts with the label C Pre-increment operator

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

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