[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Strings

Home > Programs > Strings

347 / 60

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: