Algorithms C Programs
Algorithms C Programs
4. String Operations
Algorithm: 1. Start. 2. Input a string (or two strings where needed). 3.
Perform operations: - Length: - Count characters until the null character. -
Reverse: - Traverse string from end to start. - Equality check: - Compare
characters of two strings. - Palindrome: - Check if string reads the same
forward and backward. 4. Display results for each operation. 5. End.
1
7. Employee Details Operations
Algorithm: 1. Start. 2. Define structure for employee details: - Name, Des-
ignation, Gender, DOJ, and Salary. 3. Input details for multiple employees. 4.
Compute: - Total employees: Count entries. - Employees with salary >
20,000: Filter and display. 5. End.