About 406,000 results
Open links in new tab
  1. C++ - Find the largest word in a given string - w3resource

    Apr 11, 2025 · Write a C++ program that finds the longest word in a string by comparing lengths after splitting by whitespace. Write a C++ program to output the longest word from a given …

  2. C++ Program to print the longest word of the string?

    Mar 1, 2016 · max = s.substr(i + 1 - max_word, max_word); #sub string command that prints the longest word. else. max = s.substr(i - max_word, max_word); counter = 0; The current output …

  3. C Program to Find Longest Word From Given Sentence

    This program finds longest word in a given string or text using C programming language. length = strlen(string); . index =0; /* Finding length of longest word and starting index */ for( i = 0 ; i < …

  4. Program to find Smallest and Largest Word in a String

    Mar 3, 2025 · In this approach we uses regular expressions to find words in a given input string and iterates through them. It keeps track of the smallest and largest words based on their …

  5. Program - To find the longest word from a sentences - DaniWeb

    Feb 8, 2011 · Use a loop, compare each character with space and increment a variable "temp_count" each time a character other than space is encountered. when space is met, …

  6. 100+ Examples of C++ programming with output - StudyMite

    Examples of C++ programming with output and explanation. You will find basic programs in C++ on all important topics and the most asked programs in the interview.

  7. How to use Turbo C/C++ to run your first C program

    Apr 6, 2020 · How to use and setup Turbo C/C++ compiler to compile & RUN a C program. A basic tutorial on Turbo C setup for beginners in C programming.

  8. Program for length of the longest word in a sentence

    Sep 15, 2024 · Given a string S in the form of a sentence, the task is to find the word from the text with the maximum number of its anagrams present in the given sentence. Example: Input: S = …

  9. Turbo C/C++ Mastery: Quick Commands Explained

    Turbo C/C++ is an integrated development environment and compiler for the C and C++ programming languages that simplifies the process of writing and executing code with a user …

  10. program to find the smallest and largest word - Stack Overflow

    Mar 11, 2013 · This is an example from K.N. King book which finds the smallest and largest word in a series of words and stops at word length of 4. But it doesn't work correctly. char …

  11. Some results have been removed
Refresh