Write a program in ‘C’ language, which accepts a text string from a user and prints its reverse order.
Himanshu KulshreshthaElite Author
Asked: May 22, 20242024-05-22T15:07:29+05:30
2024-05-22T15:07:29+05:30In: INFORMATION TECHNOLOGY
Write a program in ‘C’ language, which accepts a text string from a user and prints its reverse order.
Share
Related Questions
- Create an invitation card of your birthday party in MS-Word. b) Exhibit the use of Mail merge in MS word, ...
- Write HTML code to display a webpage for a hospital and create a web form for taking online appointment of ...
- Create a database in MS-Access for a hospital, which is having the following database fields : • Doctor ID, Doctor ...
- Write a Java applet which converts metres into kilometres and centimetres as given by the user.
- IGNOU wants to deliver CIT programme in multimedia form. Propose a plan to develop a CIT block in multimedia form. ...
- Design a web page which uses two frames, the left frame are further divided into two frames horizontally. The upper ...
- What is Computer Vision? What are the technical challenges in the context of computer vision? Explain.
- Explain the following in the context of HCI: (i) Controls in the context of GUI (ii) Voice User Interfaces (iii) ...
Here's a simple C program to accept a text string from a user and print its reverse order:
Explanation:
text
to store the input text string provided by the user.fgets()
to read the input string from the user, ensuring that the input does not exceed the size of thetext
array.\n
) from the end of the input string usingstrcspn()
.strlen(text) - 1
) and ending at the first character (0
).