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
(GAME DESIGN)
Sliva [168]

Answer:

A. When an object is in a specific position on a frame

Explanation:

In the testing phase of a new game, the errors of the programming process are corrected and the gameplay is improved as the game is tested. The objective of correcting serious defects and improving fundamental characteristics not contemplated in the design document, detecting minor failures and profiling the user experience.

8 0
3 years ago
The largest value (in hex) that can be loaded into Register A of HCS12 is (Points : 2) 0x8.
andrezito [222]

Answer:

0xFF.

Explanation:

The Register A of HSC12 is an 8-bit register.So the maximum value for 8 bit is 8 1's (11111111). So the decimal value for the maximum 8 bits is 255 but all the options given are in hexadecimal so among the given options only 0xFF has the value of 255 in decimal  F=(1111)₂.So two F's make 8 bits and their decimal value is 255.

7 0
3 years ago
A(n) _____ chart is drawn on the same worksheet as the data.
Harrizon [31]
The answer is An embedded chart
6 0
3 years ago
If you enter the search "genetically modified foods" in a database, the double quotes around the three words will:
In-s [12.5K]

Answer:

Have a more specified search

Explanation:

If you do this in G0OGLE Then it will be the same thing all it basically does it narrow down the search to find more of what you want

4 0
3 years ago
PLEASE PLEASE HELP. IF THERE A MULTUPLE ANSWERS I WILL BRAINLIEST TO THE BEST ONE!!!!
sladkih [1.3K]

Answer: multiple answers but here is one

Explanation: The Advantages

One of the biggest advantages of ebooks is the fact that they require no trees to create them. This is obviously an eco-friendly option that both reduces cost and lowers environmental impact.

Information can be obtained without leaving your desk! Need to do some last-minute research on a particular topic? Simply find a great ebook store, search for your keywords or phrases, purchase the book and you’re set!

Unlike paper books and materials, digital books only require one device to carry around with you. This means you can carry a library of various book genres for every mood.

eBooks can lower the cost of enjoying your favorite titles. With no shipping and handling costs, eBooks typically have prices that are 50-60% lower than their print counterparts.

eBooks are more flexible than paper books. For those who have trouble reading the typical book-sized font, ebook readers can enlarge the font size to make reading more pleasurable and easier on the eyes.

eBooks can contain multi-media elements not available with traditional books. Audio and video can be embedded to make reading a fully immersive experience.

Ever wonder where that great passage in your favorite book went to? With ebooks you can mark passages, save pages and search text before, during or after you read.

With all these advantages it is difficult to imagine what the disadvantages are, but there are some that have many folks concerned. If you're already sold, we've listed the cheapest prices for the Amazon Kindle below.

The Disadvantages

Piracy is the number one concern for both publishers and authors. While traditional books can be copied with machines, the time and cost of doing so typically keeps this type of piracy at bay. With ebooks, however, 'sharing' books that have not been purchased with others is as easy as posting a file online or, in some cases, copying and pasting the text from one document to another.

Many people still prefer being able to hold a traditional book in their hands. For those of us who enjoy reading a book in bed before signing off for the night, a cold hard digital device just won’t be the same.

While one advantage of ebook devices is their ability to enlarge fonts for easier reading, the fact is you are still reading off an LCD screen. Some readers have matte e-ink screens, but others give off a glare that can not only make reading inconvenient if the lighting isn’t just right, but may actually cause eye strain and make it more difficult to focus while reading.

With the wide variety of formats and ereader devices on the market, choosing which device is the right one for all situations can be nearly impossible. Though compatible formats have been introduced that should allow most readers to view purchases, many of these still lack proper formatting. Without proper page layouts and spacing reading becomes more of a tedious chore than an enjoyable pastime. With traditional books one simply buys and reads!

When is the last time you had to plug your paper book into the wall outlet? How disappointing would it be to find yourself right in the middle of a steamy romance scene while traveling only to have the batteries in your reading device die, with no way to charge them?

Currently, ebooks have an unreliable life span. Paper books last for decades provided they are well cared for. And besides, what good is a bookshelf if you cannot enjoy the look and smell of all your time-worn books, lovingly thumbed, crimped and read cover to cover, over and over again?

7 0
2 years ago
Other questions:
  • Bob's Assembly is a hardware manufacturer. It specializes in builders' hardware for doors, cabinets, windows, and bathrooms. Bob
    10·1 answer
  • It is not recommended by the USA EPA, but adding refrigerant to a leaking A/C system is
    13·1 answer
  • Which view In a presentation program displays you’re slides in full screen modes ?
    8·2 answers
  • Hope wants to add a third use at the end of her
    14·1 answer
  • How do you know if a remote host is alive or not?
    5·1 answer
  • In which of the security mechanism does the file containing data of the users/user groups have inbuilt security?
    6·1 answer
  • Which of the following statements is false? a. InputStream and OutputStream are abstract classes for performing byte-based I/O.
    7·1 answer
  • Write a program that asks for the weight of a package and the distance it is to be shipped. This information should be passed to
    12·1 answer
  • Let's go! About to hit 40k!!! Glad to help on Brainly®!!!
    11·1 answer
  • Como a contribuido el desarrollo tecnologico a mejorar la calidad debida de los seres humanos
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!