tag:blogger.com,1999:blog-959939550345671470.post8814876331356274375..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: COUNTING DIFFERENT CHARACTERS IN A STRING USING C PROGRAMPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-959939550345671470.post-1922124938804898462017-04-07T21:11:51.530+05:302017-04-07T21:11:51.530+05:30Please can you tell me how to write a c program to...Please can you tell me how to write a c program to sort a list of names in ascending order without using builtin functions Anonymoushttps://www.blogger.com/profile/04249254402011928954noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-65009962193445255342016-03-17T19:16:31.124+05:302016-03-17T19:16:31.124+05:30Pls give me a program to enter some alphanumeric s...Pls give me a program to enter some alphanumeric series, and then to convert characters in ascii, and numbers stay a numbers.Anonymoushttps://www.blogger.com/profile/12681882856140146812noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-70001894579239372642016-02-10T17:52:54.888+05:302016-02-10T17:52:54.888+05:30#include
int main()
{ char str[10];
int le...#include <br /><br />int main()<br />{ char str[10];<br /> int letter=0,vowel=0,i;<br /> <br /> printf("Enter a string\n");<br /> scanf("%s",str);<br /> <br /> for(i=0;str[i]!='\0';i++)<br /> {<br /> letter++;<br /> if(str[i]=='a'||str[i]=='e'||str[i]=='o'||str[i]=='u'||str[i]=='i')<br /> {<br />Anonymoushttps://www.blogger.com/profile/17363846173080524238noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-50215759484786143072016-02-10T16:43:01.585+05:302016-02-10T16:43:01.585+05:30#include
int main()
{ char str[10];
int le...#include <br /><br />int main()<br />{ char str[10];<br /> int letter=0,i;<br /> <br /> printf("Enter a string\n");<br /> scanf("%s",str);<br /> <br /> for(i=0;str[i]!='\0';i++)<br /> {<br /> letter++;<br /> }<br /> printf("No of character is %d",letter);<br /> return 0;<br />}<br />Anonymoushttps://www.blogger.com/profile/17363846173080524238noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-88299293368790950182016-02-10T16:32:17.406+05:302016-02-10T16:32:17.406+05:30This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/17363846173080524238noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-87909285652690083452015-09-07T17:16:57.433+05:302015-09-07T17:16:57.433+05:30How these sprintf works.. can you explain? How these sprintf works.. can you explain? Anonymoushttps://www.blogger.com/profile/03367429469991472824noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-47767821180043172302014-03-27T07:27:08.241+05:302014-03-27T07:27:08.241+05:30pls give prg to count frequency in stringpls give prg to count frequency in stringAnonymoushttps://www.blogger.com/profile/10630291029677526661noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-89228264910772208622013-06-25T22:55:49.481+05:302013-06-25T22:55:49.481+05:30void main()
{
int count_let=0,count_vow=0;,i;
char...void main()<br />{<br />int count_let=0,count_vow=0;,i;<br />char str[20];<br />clrscr();<br />printf("enter string:");<br />gets(str);<br />for(i=0;str[i]='\0';i++)<br />{<br />count_let++;<br />if(str[i]='a'&&str[i]='e'&&str[i]='i'&&str[i]='0'&&str[i]='u')<br />{<br />count_vow++;<br />}<br />printf("maheshnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39261922807639090512013-06-25T22:54:21.270+05:302013-06-25T22:54:21.270+05:30void main()
{
int count_let=0,count_vow=0;,i;
char...void main()<br />{<br />int count_let=0,count_vow=0;,i;<br />char str{20];<br />clrscr();<br />printf("enter string:");<br />gets(str);<br />for(i=0;str[i]='\0';i++)<br />{<br />count_let++;<br />if(str[i]='a'&&str[i]='e'&&str[i]='i'&&str[i]='0'&&str[i]='u')<br />{<br />count_vow++;<br />}<br />printf("maheshnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-38480400897672018832013-06-25T22:49:42.048+05:302013-06-25T22:49:42.048+05:30void main()
{
int count_let=0,i;
char str{20];
clr...void main()<br />{<br />int count_let=0,i;<br />char str{20];<br />clrscr();<br />printf("enter string:");<br />gets(str);<br />for(i=0;str[i]='\0';i++)<br />{<br />count_let++;<br />}<br />printf("no of letters are : %d",count_let);<br />getch();<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-52455676346191416442013-06-25T22:48:41.018+05:302013-06-25T22:48:41.018+05:30dude by this we get the output as 1265=one two six...dude by this we get the output as 1265=one two six five ..<br />??<br /> and other one is where you are checking the number with string (a i mean translating ) ?<br />help me ...<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-68637817923029909212013-06-25T22:46:07.656+05:302013-06-25T22:46:07.656+05:30void main()
{
int count_let=0,i;
char str{20];
clr...void main()<br />{<br />int count_let=0,i;<br />char str{20];<br />clrscr();<br />printf("enter string:");<br />gets(str);<br />for(i=0;str[i]='\0';i++)<br />{<br />count_let++;<br />}<br />printf("no of letters are : %d",count_let);<br />getch();<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-91591786958868149992013-06-14T21:11:39.093+05:302013-06-14T21:11:39.093+05:30#include
int main()
{
int num;
char str[100];
i...#include<br />int main()<br />{<br /> int num;<br /> char str[100];<br /> int i;<br /> printf("\n Enter the number");<br /> scanf("%d",&num);<br /> sprintf(str,"%d",num);<br /> //printf("%s",str);<br /> for(i=0;str[i]!='\0';i++)<br /> {<br /> <br /> switch(str[i])<br /> {<br /> case '0':<br /> printf("Zero\t");<br />yoganoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-15257322549168036902013-02-02T13:49:52.593+05:302013-02-02T13:49:52.593+05:30write a program to accept any number up 6 digit an...write a program to accept any number up 6 digit and print in string. example input the number 1265 and output is one thousand sixty five<br /><br /><br />please give me the solution<br />jasvirhttps://www.blogger.com/profile/08484321870107682032noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-38120399774621611482013-01-25T21:03:29.467+05:302013-01-25T21:03:29.467+05:30please give me the program to count the number of ...please give me the program to count the number of letters in a given stringAnonymoushttps://www.blogger.com/profile/05551499930054898257noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-20097508263370179802012-12-31T01:13:59.307+05:302012-12-31T01:13:59.307+05:30Pls explain the program to count the different typ...Pls explain the program to count the different type of characters in string.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-75441484731298254182012-08-15T15:18:24.177+05:302012-08-15T15:18:24.177+05:30please give me the program to count the number of ...please give me the program to count the number of vowels in a given stringAnonymousnoreply@blogger.com