answersLogoWhite

0

this is the program ihave until now the problem is that it reverses the word itself also , if someone can help i will really appreciate it

int main() {

char forward_sentence[MAX]; char ch, terminator;

int i = 0, j, len = 0;

printf("Enter a sentence: ");

ch = getchar();

while(i < MAX && ch != '\n' && ch != '.' && ch != '?' && ch != '!')

{

forward_sentence[i] = ch; i++; len++; ch = getchar(); }

for(i = 0; i < MAX; i++) { if(ch ' ')

{ }

printf("%c", forward_sentence[j]); }

printf("%c", terminator);

printf("\n");

return 0; }

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What do call the arrangement of words in a sentence?

It is called syntax.


What are the nouns in sentence books music and movies often feature new words that are then added to everyday language?

Some words come from other languages, such as Spanish and French


What are the four areas of language?

The four main areas of language are phonology (the study of sounds in a language), morphology (the structure of words), syntax (the arrangement of words in a sentence), and semantics (the meaning of words and sentences).


What type of noun is words in the sentence During World War II many new words came into our language?

In the sentence, the word 'words' is a plural, common noun, the subject of the sentence.


Program to select word from a sentence?

Microsoft Word will find specific words.


What is the role of a translator app?

A translator takes a program written in source language as input and converts it into a program in target language as output. It also detects and reports the error during translation. • Translating the high-level language program input into an equivalent machine language program.


What are the 3 conjunctions of English language?

The three main conjunctions in the English language are &quot;and,&quot; &quot;but,&quot; and &quot;or.&quot; These words are used to connect words, phrases, or clauses in a sentence.


How do you write a one word sentence?

A sentence is defined as a string of words. Therefore a single word can not make a sentence. The shortest acceptable sentence in the English language is "I am."


Why do words have gender in language?

Words have gender in language for various reasons, including historical origins, cultural influences, and grammatical rules. Gender in language helps to classify nouns and establish agreement between words in a sentence.


Can you use a word processing program to translate words or phrases to another language?

yes


This sentence is an example of which kind of figurative language?

This sentence is an example of alliteration, which is the repetition of initial consonant sounds in neighboring words.


How can you use the word syllabic in sentence form?

you learn syllabic words in language arts