Write a c program return the largest word in the string
Answers
Answered by
0
Answer:
This program is the easiest and the best to find the longest word in the string. First you have to find the length of the longest word (denoted by variable “max”) by calculating the length of each word (denoted by 'l').
...
#include<stdio. h>
#include<conio. h>
int main()
{
char *a;
int i,max=0,pos=0,l=0;
clrscr();
gets(a);
Similar questions