Question : Is the pointer constant or what it points to constant?

typedef struct
{
    some_t   const  *some_ptr;
} some_cnfg_t;


Is some_ptr constant or what it points to is constant?


Answer : Is the pointer constant or what it points to constant?

What it points to :

        int * const ptr;             /* const pointer to int */
        int const * ptr;             /* pointer to const int */
        const int * ptr;             /* pointer to const int */
        int const * const ptr;    /* const pointer to const int */
        const int * const ptr;    /* const pointer to const int */
Random Solutions  
 
programming4us programming4us