Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the following?
    const int *ptr;
  2. A.
    You cannot change the value pointed by ptr
    B.
    You cannot change the pointer ptr itself
    C.
    Both (a) and (b)
    D.
    You can change the pointer as well as the value pointed by it

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment