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
2 ответов
+ 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