I have the initial pointer of the string how can read the value in character array from that stri开发者_JAVA技巧ng.
const char *str="A C string";
printf("The first character is %c\n",*str);
printf("The second character is %c\n",*(str+1));
I have the initial pointer of the string how can read the value in character array from that stri开发者_JAVA技巧ng.
const char *str="A C string";
printf("The first character is %c\n",*str);
printf("The second character is %c\n",*(str+1));
上一篇:手机图片怎么画圈标记?
精彩评论