Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. What will be the output of the program ?

    #include
     
     int main()
     {
         char str[20] = "Hello";  
         char *const p=str;   
         *p='M';     
         printf("%s\n", str);   
         return 0;
     } 
    

  2. A.

    Mello

    B.

    Hello

    C.

    HMello

    D.

    MHello

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment