0
How do i do this?!?!
how do i reverse a sentence in c without reversing the individual words using stack ADT?
2 odpowiedzi
+ 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
}