You are on page 1of 3

Department Of Computer Science and Engineering Jaypee University of Engineering and Technology, Guna (MP) Lab Exe: - 1 Note:-

Execute all programs(from 1 to 16) using functions and pointer only (in C language) . 1. WAP to add two matrices using Pointers. 2. WAP to subtract two matrices using Pointers. 3. WAP to multiply two matrices using Pointers. 4. WAP to check whether matrix is symmetric or not. 5. Write a Menu Driven Program using pointers in which you have to :a. Compare two strings. b. Copy a string. c. Finding length of given string. d. Concatenate two strings. 6. WAP to count number of words in a string. 7. WAP to delete a character from string. 8. WAP to reverse a palindrome of string. 9. WAP to replace a character in string by another character. 10.WAP to changing string into lower case. 11.WAP to count number of words in a given string. 12.WAP to convert any base into decimal. 13.WAP to remove vowel from string. 14.WAP to remove duplicate digit from an array. 15.WAP to make abbreviation of a string. 16.WAP to count number of spaces in a string. Structures
1. There is a structure called employee that holds information like

employee code, name date of joining. Write a program to create an array of structures and enter some data into it. Then ask the user to enter current date. Display the names of those employees whose tenure is 3 or more than 3 years according to the given current date. 2. An automobile company has serial number for engine parts starting from AA0 to FF9.The other characteristics of parts to be specified in a

structure are : Year of manufacture, material and quantity manufactured. a. Specify a structure to store information corresponding to a part. b. Write a program to retrive information on parts with serial numbers between BB1 and CC6. 3. Write a Menu Driven program that depicts the working of a library. The menu options should be: i) ii) iii) iv) v) vi) vii) Add book information Display book information List all books of given author List the title of specified book List the count of books in the library List the books in the order of accession number. Exit

Create a structure called library to hold accession number ,title of the book, author name,price of the book ,and flag indicating whether book is issued or not.
4. Define a structure called cricket that will describe the following

information: player name team name batting average using cricket ,declare an array player with 50 elements and write a program to read the information about all the players and print a team wise list contaning names of players with their batting average.

You might also like