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
Vikki [24]
3 years ago
13

Write a function called printBackwards() that will work with a C string. The function will print any C string backwards. You don

't need to put in the prototype, but you need to write a complete function.
Computers and Technology
1 answer:
yaroslaw [1]3 years ago
8 0

Answer:

void printBackwards(char s[])

{

   int n=strlen(s)-1;//finding the last index of the string..

   for(int i=n;i>=0;i--)//loop to print the string backwards..

   {

       printf("%c",s[i]);//printing the character of the string..

   }

}

Output:-

abcdefg

gfedcba

Explanation:

I have used strlen function that will be used after including the string.h header file.It returns the length of the string.After finding the last index I have iterated over the c string in reverse order and printing the character of the string one by one.

You might be interested in
The technological advancements allowing for
antiseptic1488 [7]

Answer:

Better life

Explanation:

Technologies like Smartphone technologies, AI, ML, Lithium Ion Batteries, Quantum batteries, Smart Watches, Various Web 3.0, Block chain, Crypto currencies, VR, AR etc are making the life easier. ioTs, VPNs and various other advanced networks are making our life much simpler as well.

So much of technology is evolving,  and the humanity is certainly up with the best prospects. However, Climate change can be a problem within next few years, if not checked. By 2034, the earth's temperature will rise by 2%. And this will result in heavy flooding, drought, and a lot of coastal cities might be drowned completing. Hence, we need to take the precautions, as well as we need to learn tech to develop floating island like Lake Titicaca in Peru where they use the reeds to make floating islands, and you can also take advantages of the similar by different architectural technology from Amsterdam, where they make floating houses.

We need to act on Climate change now, and rest is fine definitely.

3 0
4 years ago
Any game suggestions for nintindo switch.​
alexira [117]

Answer: animal crossing lol

Explanation:

7 0
3 years ago
Jacob wants to track the profiles of users who visit his Web site. He would like to store the user’s age, income, and location.
mario62 [17]
Spreadsheet

Description
A spreadsheet is a computer application for organization, analysis and storage of data in tabular form where Jacob can store the user’s information.
7 0
3 years ago
Who is responsible for protecting the environment? a. Government b. Employers c. Employees d. Everyone Please select the best an
Veronika [31]

Answer:

A

Explanation:

Hope I helped

7 0
3 years ago
Read 2 more answers
What saw do you use to cut wood in design and technology
tia_tia [17]
Your answer would be a coping saw!
Coping saws are most commonly used cutting woof in design and technology! :)

5 0
3 years ago
Other questions:
  • HELP ASAP ILL DO ANYTHING
    6·1 answer
  • The manufacturer doesn't need it the buyer doesn't want it the user doesn't know they're using it
    6·1 answer
  • ________ reality is the addition of digital information directly into our reality, either to add more detail or to remove unwant
    7·1 answer
  • What are the two most common form factors used today for computer cases, power supplies, and motherboards?
    15·1 answer
  • describe at least five ways in which information technology can help studying subjects other than computing​
    6·1 answer
  • Describe how operating system use the following security tools: firewall, automatic updating, antivirus software, spyware and ma
    11·1 answer
  • William created a spreadsheet and he would like to enter the data he collected. What information should he put in the first row?
    15·1 answer
  • Helen is working on her colleague’s photos. She came across this particular photo and was confused about which effect the photog
    15·2 answers
  • Device driver issues can come up if you . If this happens, .
    11·1 answer
  • What has global css rulesets of an angular 8 project mcq.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!