Search found 1 match

by Anamika Paul
Thu Jun 25, 2015 11:33 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19849

Re: 483 - Word Scramble

please help me , I am getting Runtime error. My code is given below. #include<stdio.h> #include<string.h> char str[90000]; int reverse(int i){ int k,j,br; br=-1; for(k=0;k<=i;k++){ if(str[k]==' ') { for(j=k-1;j>br;j--) { printf("%c",str[j]); } if(k!=i)printf(" "); br=k; }} return 0;} int main() { ch...

Go to advanced search