write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word



write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the..

Answer / rprabhakaranmca

INPUT:HI Hi welcome to Citrisus
OUTPUT;Citrisus to Welcome Hi

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

Is a house a mass structure?

0 Answers  


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??

19 Answers   EBS, Ramco, Sangwin, TCS,


Explain output of printf("Hello World"-'A'+'B'); ?

0 Answers  


what does " calloc" do?

7 Answers   Cadence, Logos,






Is that possible to add pointers to each other?

0 Answers  


What are the commands should be given before weiting C Program i.e, Cd.. like

4 Answers   IBM, Infonet, Satyam, Tech Mahindra,


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


Do you have any idea about the use of "auto" keyword?

0 Answers  


Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both

3 Answers  


How to set file pointer to beginning c?

0 Answers  


Explain what standard functions are available to manipulate strings?

0 Answers  


Categories