I am brand new to C and I am having so much trouble grasping the basics of it. Consider this code:
Code:
char *s = "this is my string";
printf("%s", s[3]);
|
Newbie Member
|
|
| 22May2008,23:36 | #1 |
|
Hi all,
I am brand new to C and I am having so much trouble grasping the basics of it. Consider this code: Code:
char *s = "this is my string";
printf("%s", s[3]);
|
|
Go4Expert Founder
|
![]() |
| 23May2008,08:33 | #2 |
|
Just try this
Code:
char *s = "this is my string";
char c = s[3];
printf("%s,%c", s, c);
|