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
_____ ___ ___ ____ ___ _____ ________ ___ _________ _____.
_________ ________ ________ _______ __________ _____ ____ __________ _________.
______ _________ __________ ___ ____ ____ _____ ____ _________ _______ __________ _____.
_________ __________ _____ __________ _______ ___ ________.
_____ ________ _____ ____ _______ ____ ______ ________ _____ ______ ________.
___ ___ ________ _______ _________ _________ ________ ____ __________ ____.
_______ __________ __________ ____ ________.
____ ______ ____ ________ __________ _______ _______ __________ _____ ______ _____ _____.
_________ _____ _______ ______ _________.
______ _______ _____ _________ ________ ___ ____ _______.
__________ _____ ______ ______ ___.
_______ __________ __________ __________ __________ ____.
____ _____ ______ __________ __________ __________ ______ ____ __________ ____ __________ _________.
___ _____ ________ ___ _______.
________ ______ __________ _________ ______ ____ __________ ___.
_________ _____ _____ ______ _______ _____ _______ _________ ________ __________.
_________ _____ __________ ___ ____ _______ ______.
__________ _________ _____ __________ ______ ________ ________.
_______ ________ _______ ________ ________ _____ _____ _________ _________.
__________ _________ _________ ___ ___ ____ _______ _____ ______ __________.
___ _________ ________ ___ ____ _______ ___.
___ ___ ________ _________ ________ _______ ________ _________ ___ ______ ___ ___.
_____ _________ ______ _________ ________ ________ ______ __________.
____ ___ _________ _______ ______ ___ ______ __________ ______.
________ ______ _____ ____ __________.
_________ _________ _________ _____ ____ _________ _______ __________ ________ _______ ________.
_________ _______ _________ _____ _________ ______.
______ ____ _________ ________ ___ _____ _____ _______ _________ ______ __________.
_____ _____ ______ ________ __________ ____ _______ ____ __________ __________ ________ ________.
______ ________ __________ _______ _________ ________ ______.
_________ ___ _____ ____ __________ _______ ______ _________ __________ _____.
___ ___ ________ ________ ________ _____ ________ ______ ______.
_____ _______ ____ ___ ____ ________ _____ ______.
_______ _____ ______ ____ ____ ______ _____ _______ _______.
___ ______ ________ ______ _________ ____.
__________ __________ _________ _______ ______ _______ ___ ________ ______ _____ _____ ________.
______ ______ _________ _____ __________.
__________ ______ ________ ___ ______ ____ ______.
__________ ____ _________ _____ _____ _________ _____ _______.
_______ _________ ______ _______ __________ ___.
____ ______ _____ _________ _____.
_________ _______ __________ _______ ______ _______ ______ _________.
____ __________ _____ _____ _______ ____.
____ ________ ______ ______ ___ ____ ____ ______ ______ ____ ___ ___.
______ __________ __________ _______ ________ _______ _____ _________.
_____ ___ ___ ____ _____ ________ ________.
_____ ______ __________ _______ ___.
________ __________ __________ ________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required
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
Explain the differences between call-by-value and call-by-reference in C. Write separate C programs to swap two numbers using both approaches and analyze the output. Which approach reflects the changes outside the function and why?
What are header files in C? Write a C program that uses a macro to convert Celsius to Fahrenheit and vice versa. Use conditional compilation to enable/disable each conversion. Discuss the significance of preprocessor directives.
What is a structure in C? Define a structure for an Employee containing emp_id, name, department, and salary. Write functions to:
- Input employee data
- Display all records
- Find employees with the highest salary
- Calculate average salary department-wise
Write a C program to multiply two matrices A and B (of size N×N) and store the result in matrix C. Also, check whether the result is a diagonal matrix.
Write a C program to calculate the average, highest, and lowest marks obtained by students in a class using an array. Accept n marks from the user and display the results.
Explain dynamic memory allocation in C. Write a C program to dynamically allocate memory to store a list of numbers and then compute their sum and standard deviation. Free the memory after use. Discuss memory management in your explanation.