Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. What will be the output of the program ?

    #include
      int main() 
      {    
          char str1[] = "fresher";   
          char str2[] = "GATE";    
          char *s1 = str1, *s2=str2;     
          while(*s1++ = *s2++)          
              printf("%s", str1);      
    
          printf("\n");  
          return 0;
     } 
    

     

  2. A.

    fresherGATE

    B.

    BfresBherGATE

    C.

    fresher

    D.

    (null)

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment