0
In a string...how to print individual character?
3 ответов
+ 3
Um, by using [] ?
E.g. :
char str[]="Hello";
printf("%c",str[1]);
/* Prints second character. */
/* Output = e */
0
@kinshuk vasisht but if I use for loop to print 1by 1 character
0
like
ex:
H
e
l
l
o