const usage with pointers in C

后端 未结 6 1924
夕颜
夕颜 2020-11-28 10:32

I am going over C and have a question regarding const usage with pointers. I understand the following code:

const char *someArray
6条回答
  •  孤街浪徒
    2020-11-28 11:08

    char * const array;
    

    It means that the pointer is constant. Also,

    const * const char array;
    

    means a constant pointer to constant memory.

提交回复
热议问题