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
MArishka [77]
3 years ago
4

Write a recursive function stringReverse that takes a character array as an argument, prints it back to front and returns nothin

g. The function should stop processing and return when the terminating null character of the string is encountered.
Computers and Technology
1 answer:
Ilia_Sergeevich [38]3 years ago
7 0

Answer:

Refer below for the code.

Explanation:

#include <string.h>

void stringReverse(char[]);

//function declaration

int main()

// main function

{

char str[25];

printf("String to reverse: ");

// user input

scanf("%s", str);

printf("\nString that is reversed is: \n"); //

stringReverse(str);

return 0;

}

void stringReverse(char*arrayString)

{

if (*arrayString=='\0'){

return;

}

else{

stringReverse(arrayString+1);

}

printf("%c", arrayString[0]);

}

You might be interested in
A typical setup for a ____ network would include computer users sharing a single internet connection.
konstantin123 [22]
Could be 'home or work' or intranet. Not enough context to answer any better.
3 0
4 years ago
Point giveaway and brainliest
melamori03 [73]

Thank you, pal!

You are invited to my clubhouse!

5 0
3 years ago
Read 2 more answers
How to add bullet points in google slides??
Anettt [7]
<span>Open a document or presentation.Add or select a text box.<span>On the toolbar, click Bulleted list  or Numbered list .<span>Note: If you don't see the option, click More.</span></span>To change the style of the bullets or numbers, click the dropdown arrow next to the icons in the toolbar</span>
6 0
4 years ago
Read 2 more answers
Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times
shusha [124]

Answer:

The program in Python is as follows:

print("Enter a character followed by a phrase",end='')

word = input(": ")

char = word[0]

print("Occurrence: "+str((word.count(char))-1))

Explanation:

The prints an instruction to the user on how to input to the system

print("Enter a character followed by a phrase",end='')

This prompts and gets the user for input

word = input(": ")

This extracts the character from the input string

char = word[0]

This counts and prints the number of occurrence of the extracted character

print("Occurrence: "+str((word.count(char))-1))

6 0
3 years ago
Explain one rule the company must follow when using cookies on its website.
ololo11 [35]

Explanation:

Work out what cookies your site sets, and what they are used for, with a cookie audit.

Tell your visitors how you use cookies.

Obtain their consent, such as by using Optanon, and give them some control.

7 0
3 years ago
Other questions:
  • Tasha purchased a new tablet. She has several questions about how to connect to the internet, download apps, install software, a
    5·1 answer
  • 11. In Microsoft Word, when you highlight existing text you want to replace, you're in
    8·1 answer
  • Which class of fire extinguisher is appropriate for a fire involving electrical/energized electrical equipment?
    13·2 answers
  • GIVING BRAINLIEST Which feature of a database allows a user to locate a specific record using keywords?
    13·2 answers
  • Implement a function with signature barGraph(w, h, data) which creates and returns a cs1graphics.Canvas instance that has width
    9·1 answer
  • 1
    13·1 answer
  • After inserting a video into your slide how can you test it
    11·1 answer
  • How does the autosum command calculate data? Need help ASAP​
    5·1 answer
  • Which is the most correct option regarding subnet masks?
    10·1 answer
  • Which longstanding restaurant chain closed its last location in lake george, new york?.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!