Home / C Programming / Strings :: Discussion

Discussion :: Strings

  1. For the following statements will arr[3] and ptr[3] fetch the same character?
    char arr[] = "FresherGATE";
    char *ptr = "FresherGATE";

  2. A.

    Yes

    B.

    No

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Yes, both the statements prints the same character 'i'.


Be The First To Comment