Posted in All Posts, Semester 1

Sem 1 – PSCP Unit 4 Programs

PSCP – Problem Solving & C Programming

Unit 4 : Using Arrays & Strings

1. Program to read 10 integers as an array. Find the largest and smallest number.
Download

2. Program to input 5 numbers using array and rearrange the array in reverse order.
Download

3. Program to read text and find number of lines.
Download

4. Program to input marks of 5 subjects obtained by 5 students and display student’s code and their marks.
Download

5. Program to sort an array in ascending order.
Download

6. Program to print addition of two matrices.
Download

7. Program to print multiplication of two matrices.
Download

8. Program to count no. of occurrences of a given character in a sentence.
Download

9. Program to extract n characters starting from m in a given string and print them.
Download

10. Program to to remove duplicate numbers from an array.
Eg. If list is 1 2 3 4 4 3 2 5
Then output should be 1 2 3 4 5
Download

11. Program to sort an array in descending order.
Download

12. Program to input a string and find if it is a palindrome.
Download

Download All

I hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

Comment your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.