0% found this document useful (0 votes)
24 views

Easy Medium Advanced: Practical 1

The document outlines a practical assignment on pointers and structures. It provides details on a classwork activity to create and display records of students dynamically using pointers. For homework, it lists 10 programming problems covering topics like working with arrays, structures, pointers, functions and dynamic memory allocation. The problems include tasks like displaying even/odd numbers from user input, evaluating student performance with structures, calculating array sums and averages, and processing employee data using structures and pointers.

Uploaded by

mohd wazid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Easy Medium Advanced: Practical 1

The document outlines a practical assignment on pointers and structures. It provides details on a classwork activity to create and display records of students dynamically using pointers. For homework, it lists 10 programming problems covering topics like working with arrays, structures, pointers, functions and dynamic memory allocation. The problems include tasks like displaying even/odd numbers from user input, evaluating student performance with structures, calculating array sums and averages, and processing employee data using structures and pointers.

Uploaded by

mohd wazid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Easy Medium Advanced

Practical 1 (Topic: Pointers & Structures)

Class-work:

 Write a program to create and store records of students dynamically (using pointers)
and display them.

Home-work:

1) Write a program to ask the user for 10 integer numbers and display the even ones.
2) Write a program to evaluate student’s performance using structure; where structure
contains name and total_marks.
3) Write a program to calculate sum and average of all element of dynamic 2-D array.
4) Write a program to ask the user for 10 real numbers and display the average of the
positive ones and the average of the negative ones.

5) Write a program to interchange two variables using pointers, using the concept of invoking
functions by passing the pointers.
6) Write a Program to create a structure for Employee containing appropriate fields for ID,
Salary and Name. Prompt the user to enter the details of “n” employees and instantiate
the structure and store the references in an pointers. Now write a function to display
the details of an employee with given ID.
7) WAP to delete duplicate elements from an dynamic 1-D array of “n” integers.
8) WAP that returns the sum of the elements in a specific row of an array. The array,
number of filled-in columns and which row is to be totaled should be passed as
parameters.

9) Write a program to print names and number of employees who have 5 year or more
experience and salary less than Rs. 10,000/- using an array of structures.
10) Write a program to find frequency of each element in an array using pointer.

You might also like