C programming

profilefaag20

You will be writing a C program that reads in four characters 

and then prints them out in a rotated pattern.  For example, if

the input characters are ABCD, the output will be (with no leading spaces):

 

               ABCD

               BCDA

               CDAB

               DABC




You need to write a function RotateFourChars using pointers and a "temp" variable to 

store c1 (the first character) in order to rotate the characters. 


    • 8 years ago
    • 15
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      CharacterRotation.rar
    • attachment
      StringRotation.PNG

    Purchase the answer to view it

    blurred-text
    NOT RATED