How do i do this?!?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i do this?!?!

how do i reverse a sentence in c without reversing the individual words using stack ADT?

8th Jan 2022, 6:17 AM
Yash
Yash - avatar
1 Answer
+ 1
//push start of stack marker while(scanf("%s", word)!=EOF) { //push the whole word array } //pop stack ADT into word (char array) while [not start of stack marker] { printf("%s ", word); //pop stack ADT into word }
8th Jan 2022, 10:17 AM
Brian
Brian - avatar