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

write a c program to show the use of post and pre decrement function

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

run
initial value i = 6
x= i–, value of x = 6, and value of i = 5
initial value i = 6
y = –i, value of = 5, and value of i = 5

Leave a Reply

Your email address will not be published.

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