Home / C Programming / Strings :: Discussion

Discussion :: Strings

  1. What will be the output of the program ?

    #include 
    
     int main() 
     {    
         static char s[25] = "The cocaine man";  
         int i=0;    
         char ch;    
         ch = s[++i];     
         printf("%c", ch);     
         chc= s[i++];  
         printf("%c", ch);   
         ch = i++[s];   
         printf("%c", ch);    
         ch = ++i[s];     
         printf("%c", ch);     
         return 0; 
    } 
    

     

  2. A.

    hhe!

    B.

    he c

    C.

    The c

    D.

    Hhec

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment