Program 71 #P71 - C program to Reverse a Sentence Using Recursion #C191

preview_player
Показать описание
This program first prints "Enter a sentence: ".Then,immediately reverseSentence() function
is called.This function stores the first letter entered by user in variable c.If the variable
is any character other than '\n' [ enter character], reverseSentence() function is called again.
When reverseSentence() is called the second time, the second letter entered by the user is stored
in c again.But, the variable c in the second function isn't the same as the first. They both take
different space in the memory.This process goes on until user enters '\n'.When, the user finally
enters '\n', the last function reverseSentence() function prints the last character because of
printf("%c", c); and returns to the second last reverseSentence() function.Again, the second
last reverseSentence() function prints the second last character and returns to the third last
reverseSentence() function.This process goes on and the final output will be the reversed sentence.

#rubalsolutions #coding #developer #programming #programmer #technology #clanguage #computerscience #c #informaticpractices #sub #subscribe #youtube #newyoutuber #youtubechannel

To Install Turbo C++ 4.5 Click on Below Link and Download rar file and extract and then install..
Do Like,Comment,Share and Subscribe if u are learning little bit.
Please give me suggestions in form of comment box .

Рекомендации по теме
Комментарии
Автор

Honestly, the video is terrible.
You need to improve the recording quality. The noise is so annoying that I didnt feel like watching.

And your explanation is so bad. I also know that function is being called recursively until \n. What I wanted to see was the way it prints letter by letter. You could have made a rough work and shown as us each letter print and then calling the function again.

informationhub
join shbcf.ru