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
Eduardwww [97]
4 years ago
13

A palindrome is a string that reads the same both forward and backward. For example, the string "madam" is a palindrome. Write a

program that uses a recursive function to check whether a string is a palindrome. Your program must contain a value-returning recursive function that returns true if the string is a palindrome and false otherwise. Do not use any global variables; use the appropriate parameters.
Computers and Technology
1 answer:
MatroZZZ [7]4 years ago
8 0

// this function will return 1 if the string sent in arguments is palindrome //else it will return 0

int palindrome(int start_of_string, int end_of_string, string &strr)

{

// base case to check if the string is not empty

if (start_of_string>= end_of_string)

   return 1;

if (strr[start_of_string] != strr[end_of_string])

    return 0;

// recursive call

return palindrome(++start_of_string, --end_of_string, strr);    

}

You might be interested in
Which file contains full and incremental back-up information for use with the dump/restore utility?
Ivahew [28]

The file that contains full and incremental back-up information for use with the dump/restore utility is <u>/etc/dumpdates.</u>

<u></u>

<h3>What is dump/restore utility ?</h3>

Dump examines files in a filesystem, determines which ones need to be backed up, and copies those files to a specified disk, tape or other storage medium. Subsequent incremental backups can then be layered on top of the full backup.

The restore command performs the inverse function of dump; it can restore a full backup of a filesystem. Single files and directory subtrees may also be restored from full or partial backups in interactive mode.

Learn more about incremental backups

brainly.com/question/5849057

#SPJ4

3 0
2 years ago
A device that is connected to the Internet is known as a what?
MrMuchimi
I would say a host or end system
6 0
3 years ago
Read 2 more answers
1. You have been contracted to design a system for a smart car. The company installed four laser radars on the car’s corners to
Alexxandr [17]

Answer:

A). Using a flowchart, show the algorithm for the car collision avoidance system.

Explanation:

5 0
3 years ago
1. Write the name of the tab, command group, and icon that is used to sort information in a Word document.
OleMash [197]

Answer:

Sort Option is a best way to organize a number of terms say names alphabetically or if needed numerically. It is used mostly in making lists, tables, records etc.

(Using word version onward from 2016 like  2007/2010/2013/2016/2019)

For locating sort option in Classic Menu (if downloaded):

  • Click on Menus tab
  • Select Table from the bar
  • From the drop down click sort button having an arrow from top to bottom with A-Z(vertical) notation.

In case you have not downloaded Classic menu:

Sort option is present in the paragraph group under the Home tab.

1. Click on Home tab.

2. Figure out paragraph group.

3. There will be a sort button with an

  icon, having an arrow from top to

   bottom with notation A-Z (vertically).

5 0
3 years ago
10. Question<br> Which statement is true about computer security?
Snowcat [4.5K]

Answer:

they cannot share your privacy with others without your concern

7 0
3 years ago
Other questions:
  • Write a program that takes as input an arithmetic expression followed by a semicolon ";". The program outputs whether the expres
    11·1 answer
  • At age 16, Cheyenne just got her driver's license. She loves to drive and is thinking of becoming a truck driver, because she he
    15·2 answers
  • In 2-5 sentences, explain how columns can be used and set up to increase the effectiveness of business documents.
    11·1 answer
  • An internal _____ refers to a specific representation of an internal model, using the database constructs supported by the chose
    8·1 answer
  • What does this mean?
    11·2 answers
  • I just downloaded an update for my laptop. Now, it doesn't give me a notification when the battery is low, and it just shuts off
    6·1 answer
  • True or False? Jerry's company is beginning a new project, and he has been assigned to find a telecommunications tool that will
    13·2 answers
  • Which line defines a valid CSS rule?
    6·2 answers
  • Your task is to build a palindrome from an input string.A palindrome is a word that readsthe same backward or forward. Your code
    12·1 answer
  • What type of programing code do game developers use.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!