Objective-C const NSString * vs NSString * const

It’s not the same. The const modifier can be applied to the value, or the pointer to the value.


int * const

A constant pointer (not modifiable) to an integer (its value can be modified)


const int *

A modifiable pointer to a constant integer (its value can’t be modified)


So you can imagine:

const int * const;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)