answersLogoWhite

0

#include<stdio.h>

#include<string.h>

#include<conio.h>

void main()

{

int i,max=0,count=0,j;

char str[100]; /* ={"India IS DEMOCRATIC COUNTRY"}; u can use a string inside,in place of user input */

printf("\nEnter the string\n:");

gets(str);

for(i=0;i<strlen(str);i++)

{

if(!(str[i]==32))

{

count++;

}

else

{

if(max<count)

{

j=i-count;

max=count;

}

count=0;

}

}

for(i=j;i<(j+max);i++)

printf("%c",str[i]);

getch();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Which word in this sentence is the longest?

see this link to see the longest word in the world. https://www.digitalspy.com/fun/a444700/longest-word-has-189819-letters-takes-three-hours-to-pronounce/ 'Methionylthreonylthreonylglutaminylarginyl...isoleucine' is the chemical name of 'titin' (also known as 'connectin') - the largest known protein. It has 189,819 letters.


What links the subject of a sentence to a word or expression that identifies or describes the subject?

conjunction


Can you give me a sentence using word program?

I love this program so much. This program is amazing.


Can you make a sentence with the word program?

The program ended with a vote of thanks to the Chair.


A sentence with the word competition?

We had a competition to see who could hold there breath the longest


How do you use the word program in a sentence?

i am in the after school progam


Program to select word from a sentence?

Microsoft Word will find specific words.


What is a sentence with the word breadline?

That's the longest breadline I've seen all week.


Can you give a sentence with the word pantheism?

Pantheism identifies God as the universe. He believes in pantheism. Pantheism is a fairly rare doctrine.


What could be a sentence with the word equestrian in it?

i was in-voled in an equestrian program


what eight parts of speech is the word program in the following sentence each of the programs was taped?

The word &quot;program&quot; in the sentence &quot;Each of the programs was taped&quot; is being used as a noun.


What is an appositive sentence for attorney?

An appositive is a noun or noun phrase that identifies or renames another noun. It is a way of adding details to a sentence. The appositive is placed near the word or phrase it identifies or renames, thus it is placed in apposition to that word or phrase.Examples:Alice Aster, my attorney, has an office in this building.I have an appointment with Ms. Aster, the attorney for the Ajax Company.