KIMT ,MORADABAD

Assignment-4

 

 

  1. What do you mean by an array? explain its type and how an array can be defined.
  2. what is pointer and how it is initialized.

  3. What is pointer arithmetic? how is it performed? explain with example.
  4. Write short notes on the followings:-

        (a)malloc    (b)calloc    (c) realloc   (d) free

  1. what is dynamic memory allocation?
  2. What is difference between:-

      (a)malloc and calloc(b)array and structure

  1. explain link list and stack with example.

 

  1. What is structure ?why it is used ?explain with an example, how its size can be determined.
  2. Write a program to reverse element of an array.
  3. Write a program to print a matrix along with row and column sum.
  4. Write a program to enter a matrix and print  sum of upper triangular and lower triangular matrix.
  5. Write a program to compute sum and multiplication of two matrices.
  6. Write a program to find the transpose of a matrix.
  7. Write a program to display the contents of a pointer using different types of incerementation techniques.
  8. Write a program to to find the largest of three number using pointer function.
  9. Write a program to print different values being  pointing to by an array of pointers.
  10. Write a program to store 60 records of  students and then print name which student have marks more than 90.
  11. Write a program to that can enter and display the data up to 100 books in a library using structure and calculate total price of book.
  12. Write a program to perform the stack operations such as push ,pop functions .
  13. Write a program to perform the linked list operations such as inseration,delations creations.
  14. Write a program to store 10 numbers in one dimensional array then print the sum of all the elements of the array which are palindromes.
  15. Write a program to to read the record of a student (structure) and pass these members of structure into function and print the detailed record of a student in a function.
  16. write a program to inherit the members of one structure to another and show the access this member.
  17. Write a program to calculate the % of marks of each student and show the following details

  s.no,name,rollno,totalmarks ,%(Detail of all students).

25. Write a program to read the elements of a single dimensional array print them through pointer variable.

26. Write a program to the members of a structure and access them through pointer variable.