answersLogoWhite

0


Best Answer

#include
#include

using std::cin;
using std::cout;
using std::string;

int main()
{
string myStr = "0";
cout << endl << "Enter a string: ";
cin >> myStr;

int myStrLength = sizeof(myStr)/sizeof(myStr[0]);
for (int i = (myStrLength - 1); i >= 0; i--)
{
cout << endl << myStr[i];

}

system("PAUSE");
return 0;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A program that prompst the user of a string and print its inverse using c language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


What is string variables?

A string variable is a programming language construct that holds text. For example, the text "The sky is blue" could be stored to a string variable, then later in the program, that text could be displayed.


How do you write a program using function that counts the number of vowels in a string in java language?

Use text-editor notepad++


How do you write a program to find the no of words in a given string in dot net?

You find a language that can be targeted towards the .NET Framework. What you are suggesting is something related to string manipulation and you can work with delimiters.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in VB?

what is string


C plus plus program to perform string manipulation?

You do not need to program string manipulation as it is already part of the standard library. See std::string and std::wstring.


What is the term used for a string that appears in the actual code of a program?

string-literal


What term is used for a string that appears in the actual code of a program?

string-literal


What is the use of Reverse String in C program?

The use of the reverse string in C program is used to reverse the letters in the string. An example would be reverse me would be reversed to em esrever.


What is cputs function in computer c plus plus?

Nothing.The C language only recognizes a few keywords, like "for" and "if". Most of what's in a C program ... that doesn't reference routines in the C program itself ... are library calls, and cputs() is one of those. What it does is write its argument (which should be a pointer to a character string) to the console... console put string.


What do you mean by string in java programming?

A "string" in any programming language is a line of text.