main()
{
int i,m=0;
char a[50];
puts("Enter your name ::");
gets(a);
for (i=0;a[i]!='\0';i++)
{
printf("ASCII name =%d\n",a[i]);
m++;
}
printf("no of char in your name=%d",m);
}
{
int i,m=0;
char a[50];
puts("Enter your name ::");
gets(a);
for (i=0;a[i]!='\0';i++)
{
printf("ASCII name =%d\n",a[i]);
m++;
}
printf("no of char in your name=%d",m);
}
No comments:
Post a Comment