Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Strings

Home > Programs > Strings

48 / 59

WAP to Input a String either in C/JAVA .
Find all the Words Less than 3 Characters.

Example :
Input : Ram is a Boy
The Words Less than 3 Characters: is a
The Word Greater or equals to 4 characters: Ram and Boy

Answer:

#include

#include
int main()
{
    int i,j,k=0,count=0,len;
    char str[1000];
    gets(str);
    len = strlen(str);
    for(i=0;i

Asked In ::

Post Your Answer Here:

Language:

Post Your Reply Here: