ankitweblogic logo
W e b t u t o r i a l s

Programing Approach

Algorithm

Flow Chart

Define C

Define Programming

C - Syntax

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

Constant Variable

C - Escape Sequence

Control Structure - if

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting

ASCII Value

Character I/O Function

C - Strings

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument

MCQ

Exercise questions on Strings in C

  1. Input 'ANKIT'
    Output:
    A
    AN
    ANK
    ANKI
    ANKIT
  2. Input string and find string is palindrome or not.
  3. Input string and count number of vowels.
  4. Input sentence and count blank spaces, tabs, lines, characters and words.
  5. Trim all the spaces in between the sentence.
  6. Replace 2 or more blank spaces with a single blank.
  7. Input String and Print each character of every word.
  8. Input ANKIT
    Output: ATNIK
  9. Find the largest word from the input sentence.
  10. Find the smallest word from input sentence.
  11. Input a name and display in alphabetically order. e.g: input "oxford" output "dfoorx"
  12. Remove the multiple occurrences of characters from a string.
  13. Input country name and print its capital: For e.g.
    INDIA DELHI
    BANGLADESH DHAKA
    FRANCE PARIS
    ITALY ROME
    NEPAL KATHMANDU
  14. Solve the following program without using string function

  15. Find String length
  16. Convert into lower/upper case
  17. Reverse the string
  18. Copy string
  19. Append string
Updated: 14-Feb-19