Reverse a string word by word??

Answer Posted / dally

#include<stdio.h>
#include<conio.h>

int main()
{
char array1[] = "STRING FOR TESTNG";
char array2[20],i=0;
int count;
count = strlen(array);
for(count;count>1;count--)
{
array2[i]= array1[count];
i++;
}
printf("%s\n",array2);

}

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I convert a number to a string?

850


What Is The Difference Between Null And Void Pointer?

876


Write a c program to demonstrate character and string constants?

1927


Can you subtract pointers from each other? Why would you?

759


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2142


What is the explanation for cyclic nature of data types in c?

892


what is the role you expect in software industry?

1893


Tell me about low level programming languages.

889


Tell me is null always defined as 0(zero)?

858


Explain is it better to bitshift a value than to multiply by 2?

960


pierrot's divisor program using c or c++ code

1980


What is typedef struct in c?

808


Is main is a keyword in c?

865


What are reserved words?

868


please send me the code for multiplying sparse matrix using c

1946