Question

Without using built-in string functions, write a menu-driven C program using switch-case to perform the following on two strings:

(i) Count the number of vowels in each string

(ii) Check whether both strings are palindromes

(iii) Replace a character with another

(iv) Find the frequency of each character

12 Sep 2025
Answer :
Word Count : 544
To solve this problem in C without using built-in string functions, we need to manually handle strings using arrays and loops. The program will provide a menu to perform the requested operations on two input strings. ```c #include #define MAX 100 // Function to calculate the length of a string manually int stringLength(char str[]) { int length = 0; while (str[length] != '\0') { length++; } return length; } // Function to count vowels in a string int countVowels(char str[]) { int count = 0; for (int i = 0; str[i] != '\0'; i++) { char ch = str[i]; if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' || ch == 'A' || ch == 'E' || ch == 'I' || ch == 'O' || ch == 'U') { count++; } } return count; }
__________ ____ ____ _______ __________ _____.
_____ ___ ___ ____ ___ _____ ________ ___ _________ _____.
_________ ________ ________ _______ __________ _____ ____ __________ _________.
______ _________ __________ ___ ____ ____ _____ ____ _________ _______ __________ _____.
_________ __________ _____ __________ _______ ___ ________.
_____ ________ _____ ____ _______ ____ ______ ________ _____ ______ ________.
___ ___ ________ _______ _________ _________ ________ ____ __________ ____.
_______ __________ __________ ____ ________.
____ ______ ____ ________ __________ _______ _______ __________ _____ ______ _____ _____.
_________ _____ _______ ______ _________.
______ _______ _____ _________ ________ ___ ____ _______.
__________ _____ ______ ______ ___.
_______ __________ __________ __________ __________ ____.
____ _____ ______ __________ __________ __________ ______ ____ __________ ____ __________ _________.
___ _____ ________ ___ _______.
________ ______ __________ _________ ______ ____ __________ ___.
_________ _____ _____ ______ _______ _____ _______ _________ ________ __________.
_________ _____ __________ ___ ____ _______ ______.
__________ _________ _____ __________ ______ ________ ________.
_______ ________ _______ ________ ________ _____ _____ _________ _________.
__________ _________ _________ ___ ___ ____ _______ _____ ______ __________.
___ _________ ________ ___ ____ _______ ___.
___ ___ ________ _________ ________ _______ ________ _________ ___ ______ ___ ___.
_____ _________ ______ _________ ________ ________ ______ __________.
____ ___ _________ _______ ______ ___ ______ __________ ______.
________ ______ _____ ____ __________.
_________ _________ _________ _____ ____ _________ _______ __________ ________ _______ ________.
_________ _______ _________ _____ _________ ______.
______ ____ _________ ________ ___ _____ _____ _______ _________ ______ __________.
_____ _____ ______ ________ __________ ____ _______ ____ __________ __________ ________ ________.
______ ________ __________ _______ _________ ________ ______.
_________ ___ _____ ____ __________ _______ ______ _________ __________ _____.
___ ___ ________ ________ ________ _____ ________ ______ ______.
_____ _______ ____ ___ ____ ________ _____ ______.
_______ _____ ______ ____ ____ ______ _____ _______ _______.
___ ______ ________ ______ _________ ____.
__________ __________ _________ _______ ______ _______ ___ ________ ______ _____ _____ ________.
______ ______ _________ _____ __________.
__________ ______ ________ ___ ______ ____ ______.
__________ ____ _________ _____ _____ _________ _____ _______.
_______ _________ ______ _______ __________ ___.
____ ______ _____ _________ _____.
_________ _______ __________ _______ ______ _______ ______ _________.
____ __________ _____ _____ _______ ____.
____ ________ ______ ______ ___ ____ ____ ______ ______ ____ ___ ___.
______ __________ __________ _______ ________ _______ _____ _________.
_____ ___ ___ ____ _____ ________ ________.
_____ ______ __________ _______ ___.
________ __________ __________ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 11 2025 2026 - Without using built-in string functions, write a menu-driven C program | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→