Reverse a String Program

# Introduction In this lab, you will learn how to write a C program to reverse a given string. The program will take input from the user, reverse the string and output the result to the console. This concept can be used to check if a string is a palindrome, because a palindrome string will have the same value even after we reverse it. > Note: You need to create the file `~/project/main.c` yourself to practice coding and learn how to compile and run it using gcc. ```bash cd ~/project # create main.c touch main.c # compile main.c gcc main.c -o main # run main ./main ```

|
60 : 00

Click the virtual machine below to start practicing