Thread
:
Accessing characters of string
View Single Post
shabbir
Go4Expert Founder
23May2008,08:33
Just try this
Code:
char *s = "this is my string"; char c = s[3]; printf("%s,%c", s, c);