KIMT ,MORADABAD
Assignment-4
- What
do you mean by an array? explain its type and how
an array can be defined.
- what is pointer and how it is initialized.
- What
is pointer arithmetic? how is it performed? explain with example.
- Write
short notes on the followings:-
(a)malloc (b)calloc
(c) realloc (d) free
- what is dynamic memory allocation?
- What
is difference between:-
(a)malloc and
calloc(b)array and structure
- explain link list and stack with example.
- What
is structure ?why it is used ?explain with an example,
how its size can be determined.
- Write
a program to reverse element of an array.
- Write
a program to print a matrix along with row and column sum.
- Write
a program to enter a matrix and print sum of upper triangular and lower
triangular matrix.
- Write
a program to compute sum and multiplication of two matrices.
- Write
a program to find the transpose of a matrix.
- Write
a program to display the contents of a pointer using different types of
incerementation techniques.
- Write
a program to to find the largest of three number
using pointer function.
- Write
a program to print different values being pointing to by an array of
pointers.
- Write
a program to store 60 records of students and then print name
which student have marks more than 90.
- 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.
- Write
a program to perform the stack operations such as push
,pop functions .
- Write
a program to perform the linked list operations such as inseration,delations creations.
- 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.
- 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.
- write a program to inherit the members of one structure
to another and show the access this member.
- 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.