Write a C Program to count numbers of vowels and consonants?
C

C program to show the example of post and pre Increment

/* using incrementer */
#include
void main()
{
int i,j;
int x,y;
j=i=6;
printf(“initial value of i = %d\n”,j);
x=i++;
printf(“x=i++, value of x=%d, and value of i=%d\n”,x,i); //post increment
i=j;
y=++i;
printf(“initial value i = %d\n”,j);
printf(“y=++i, value of y=%d, and value of i=%d\n”,y,i); // pre increment
}

run
initial value of i = 6
x=i++, value of x=6, and value of i=7
initial value i = 6
y=++i, value of y=7, and value of i=7

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.