QuesAns Print Page – CSKC
Sign In

Search

siteicon
Q&A CBSE12A-2019-A04A-C2 #7020

Question:

A text file named CONTENTS.TXT contains some text. Write a user-defined function LongWords() in C++ which display all such words of the file whose length is more than 9 alphabets. For example: if the file CONTENTS.TXT contains:

“Conditional statements of C++ programming language are if and switch”

Then the function LongWords() should display the output as:

Conditional

statements

programming