#include<conio.h>
#include<string.h>
void main()
{
char str[20];
int i,len;
clrscr();
printf("Enter string: ");
gets(str);
len=strlen(str);
for(i=0;i<len;i++)
{
printf("%c = %d , ",str[i],str[i]);
}
getch();
}
Solved C Programs,C tutorial for beginners,Create simple software using "C" language,History of C programming language,Computer tips and tricks,blog,Create virus program etc.
C-PROGRAMMING © 2011 DheTemplate.com. Supported by Tips for Life and Blogging Tips