Sharecodepoint App Download Qrcode Sharecodepoint Android App Banner
Now You can search anything in sharecodepoint using your voice. Click on mic button. Sharecodepoint Voice Sharecodepoint Youtube Channel

Sharecodepoint popular queries

Saturday, 23 February 2019

Program to count the number of vowels and consonants in a given string | Compiler Design | Lex Programs

Compiler Design Lap Program : 

 int vowels=0;
 int cons=0;
[aeiouAEIOU] {vowels++;}
[a-zA-Z] {cons++;}
int yywrap()
return 1;
 printf(“Enter the string.. at end press ^d\n”);
 printf(“No of vowels=%d\nNo of consonants=%d\n”,vowels,cons);


Post a Comment


Version - 2016 - 2019 - © Sharecodepoint | Made in India. | Copyright Content