C Program to implement Post-increment operator (p++)
// 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:
Comments
Post a Comment