How can I get a char array in reverse order?

后端 未结 10 2561
情深已故
情深已故 2020-12-18 16:23

my assignment question is like that

Write a program which prints the letters in a char array in reverse order using

void printReverse(char         


        
10条回答
  •  执念已碎
    2020-12-18 16:38

    void printReverse(char letters[], int size) is the signature of the function that you have to do. E.g.

    void printReverse(char letters[], int size) {
    //your code goes here
    }
    

    and call it from your main window with the parameters.

提交回复
热议问题