Skip to content

Commit 0d89e76

Browse files
committed
string array ascii c-basics
1 parent c810a70 commit 0d89e76

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stringarrayascii.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include<stdio.h>
2+
void main()
3+
{
4+
char a[10];
5+
int m,i;
6+
printf("Enter a word");
7+
scanf("%s",a);
8+
printf("\n");
9+
for(i=0;i<strlen(a);i++)
10+
{
11+
m=a[i];
12+
printf("%d\n",m);
13+
}
14+
}

0 commit comments

Comments
 (0)