What does this quote about char pointers mean?

后端 未结 4 1706
长情又很酷
长情又很酷 2021-01-24 06:24

I\'ve read a paragraph but I can\'t understand what does it mean....can anyone please explain? the paragraph is :

processing a single character as a cha

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 07:02

    It means, if you have a single character, i.e.:

    char c = 'p';
    

    Do not try to dereference c, i.e., to do *c, because it will lead to undefined behaviour.

提交回复
热议问题