1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bezzdna [24]
3 years ago
11

how to write a function "void funct()" which will accept a string from the user as input and will then display the string backwa

rd.
Computers and Technology
1 answer:
Mariulka [41]3 years ago
5 0

Answer:

#include <bits/stdc++.h>

using namespace std;

void funct(){

   string name;

   cout<<"enter the string: ";

   cin>>name;

   

    reverse(name.begin(), name.end());

    cout<<"The string is : "<<name<<endl;

   

}

int main()

{

   funct();

 

  return 0;

}

Explanation:

create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.  

The string enter by user is store in the variable using cin instruction.

after that, we use a inbuilt function reverse() which takes two argument.

firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.

name.begin() it is a function which return the pointer of first character of string.

name.end()  it is a function which return the pointer of last character of the string.

finally, print the reverse string.

for calling the function, we have to create the main function and then call the function.

You might be interested in
PLEASE HELP ON TECHNOLOGY
Lilit [14]

Answer:

1,D. identify target employers, select an open position, prepare and submit

application materials

2,B. A person may have traits similar to other successful employees.

Explanation:

Hope It Helps :3

6 0
3 years ago
A STUDENT can take many COURSES and a COURSE can have more than one STUDENT enrolled in the course. In this case, both the "stud
Marina CMI [18]

Answer:C. To eliminate possible data redundancy.

Explanation:Data redundancy is a term used in data management system or process to mean the storage of the same data in different locations, this type of situation need to prevented for effective and efficient data management system or process.The main reason for creating a new entity is to eliminate the possibility of data redundancy which not desireous and not required.

8 0
4 years ago
The parameter string on the URL comes after the path.<br> True<br> False
USPshnik [31]

Answer:

True

Explanation:

LOLOLOLOLOLOLOLO

4 0
3 years ago
In an interview, Tom was asked to give a brief on how containers perform virtualization. How should Tom reply
defon

There is great improvement in technology. Tom should reply that Containers uses Containers use operating system (OS) components for virtualization.

  • That is a kind of operating system (OS) virtualization where leverage features is placed on the host operating system so as to separate or isolate processes and control the processes' access to CPUs, memory and desk space.

Container based virtualization often makes use of the kernel on the host's operating system to run multiple guest instances. By this, one can run multiple guest instances (containers) and each container will have its specific root file system ascribe to it, process and network stack.

Learn more from

brainly.com/question/24865302

6 0
2 years ago
I need help with Edhesive test 8 in term 2.
Fiesta28 [93]

Answer: OK

Explanation:

5 0
3 years ago
Other questions:
  • Descending selection sort with output during execution
    6·1 answer
  • A cell reference is also called a cell _______.
    14·1 answer
  • In his work for a new company, Byron found a flower material that he could use to manufacture dresses. In his career, Byron is m
    15·2 answers
  • I need a free flashdrive can anyone tell me any website links so i can get one for free????​
    11·1 answer
  • The three logical operators recognized by most search engines are
    13·1 answer
  • There are a few simple rules that you can follow to store and manage files and folders in your computer. What is the most import
    9·2 answers
  • Define the four basic operation of a computer ​
    6·1 answer
  • Which of the following is considered a basic task in the context of computer operations? a. Connecting to the Internet b. Natura
    6·1 answer
  • What is the Microsoft excel window where you work on. And it composed of three worksheet?​
    7·1 answer
  • Congress are smart becuase.....
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!