Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.80K
1 Posted Topic
#include<stdio.h> #include<conio.h> #include<string.h> void main() { char str[100],word[50][50]; int i=0,j=0,c=0,r=0,length=0,max=0,index[10]; clrscr(); printf("\n Enter any string: \n"); gets(str); length=strlen(str); for(i=0;i<length;i++) { if(str[i]!=' ') { word[r][c]=str[i]; c++; } else { word[r][c]='\0'; r++; c=0; } } word[r][c]='\0'; for(j=0;j<=r;j++) { if(strlen(word[j])>max) { c=0; max=strlen(word[j]); index[c]=j; c++; } else if(strlen(word[j])==max) { index[c]=j; c++; } } …
The End.
sanjib.pramanick