Computer Science, asked by kaithwasyashasvi, 2 months ago

A) Write a 'C' program to accept a string from user and reverse it using Static
implementation of Stack.

Answers

Answered by aditrisrivastava25
1

Explanation:

hey buddy here is your answer

Attachments:
Answered by vidyagiri10
3

Explanation:

● Read a string.

● Push all characters until NULL is not found - Characters will be stored in stack variable.

● Pop all characters until NULL is not found - As we know stack is a LIFO technique, so last character will be pushed first and finally we will get reversed string in a variable in which we store inputted string.

Similar questions