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
Wittaler [7]
3 years ago
14

Write a function called printbackwards() that will work with a c++ string

Computers and Technology
1 answer:
stiks02 [169]3 years ago
6 0
There is a standard reverser that will work for this:

void printbackwards(string s)
{
   reverse(s.begin(), s.end());
   cout << s;
}


You might be interested in
__init__(self, features, phones): create/initialize instance variables for features and the list of phones (optional) in the pla
vredina [299]

Answer:

class Phone(object):

   def __init__(self, features, phones=[]):

       self.features = features

       self.phones = phones

Explanation:

In python object-oriented programming, an instance variable of a class object is created in the "__init__()" method. the "self" is a convention name used to represent the instance of an object class. The input values are assigned to the object variable with the self.'argument_name' statement.

When the phone argument is not given, the self.phones variable is initialized as an empty list.  

8 0
3 years ago
The part of the computer that provides access to the internet is the
mariarad [96]

Answer:

The Answer B Modem

Explanation:

That is the only way that you want connect to the internet no other part can connect.

Unless you use a ethernet.

Please rate and heart.

thank you for posting this question i am glad i could answer it.

Please make this a brianliest answer thank you.

7 0
2 years ago
Do all light bulbs server a practical purpose?
Greeley [361]

Answer:

A light bulb produces light from electricity

6 0
4 years ago
Newton's method has the advantage of having a faster quadratic convergence rate over the other methods such as Secant and bisect
zmey [24]

Answer:

a. True

Explanation:

The Newton's method (Newton-Raphson method) used in advanced statistical computing can be used for a continuous and differentiable function that can be approximated by a straight line tangent to it. It requires the derivative of the function to be known, Newton's method converges faster that is whenever it converges. Newton Raphson Method has quadratic convergence which is faster, and the quadratic convergence makes the error in the next iteration increase by the square of the value of the previous iteration.

3 0
3 years ago
.What is overriding? Which keyword is needed to implement overriding?
Eduardwww [97]

Answer:

overriding is defining a function in derived class  with same name which is already exist in  base class.

Explanation:

Override key word is used in DotNet for overriding .It differes from language to language.In c++ no keyword is required for overriding.

#include<iostream.h>

public class  BaseClass

{

public :

void print(){

cout<<"print in base class";

}

}

public class DerivedClass : public BaseClass

{

public :

void print(){

cout<<"print in derived class";

}

}

void main(){

BaseClass b=new BaseClass();

b.print();

DerivedClass d=new DerivedClass();

d.print()

}

6 0
3 years ago
Other questions:
  • User-system interaction is?
    11·1 answer
  • What is the advantage of using CSS?
    14·2 answers
  • Which technological innovation was most important for early-nineteenth-century economic development?
    11·1 answer
  • How to count how many uppercase letters in sentence in python?
    8·1 answer
  • You want to verify whether a PTR record exists for the Serv2.csmpub.local host, but you don't know the IP address. Which of the
    8·1 answer
  • Which of the following “invisible” marks represents an inserted tab?
    11·2 answers
  • Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page.
    8·2 answers
  • Which of the following algorithms is the same as the flowchart shown below?
    9·1 answer
  • Anyone tell my answer.
    15·1 answer
  • Write the text of the program in Python.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!