Why *c++ increasing pointer value but not the ascii of first Char

后端 未结 0 680
时光取名叫无心
时光取名叫无心 2021-02-06 11:50
#include
int main(){
  char *c = "test";
  while(*c!=\'\\0\'){
     printf("%c", *c);
     *c++; // or c++ both produced same result.          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题