AIR UNIVERSITY
DEPARTMENT OF MECHENICAL AND AEROSPACE
ENGINEERING
EXPERIMENT NO 14
Lab Title Open Ended Lab
Student Name: Osama Sattar Khan Reg. No: 220844
Objective: Practice and demonstrate understanding of dynamic memory allocation
concepts. Develop efficient memory management skills using dynamic memory allocation
Techniques. Foster creativity and innovation in designing optimal memory allocation
Solutions.
LAB ASSESSMENT:
Excellent Good Average Satisfactory Unsatisfactory
Attributes (5) (4) (3) (2) (1)
Ability to Conduct
Experiment
Ability to assimilate the
results
Effective use of lab
equipment and follows
the lab safety rules
Total Marks: Obtained Marks:
LAB REPORT ASSESSMENT:
Excellent Good Average Satisfactory Unsatisfactory
Attributes
(5) (4) (3) (2) (1)
Data presentation
Experimental results
Conclusion
Air University, Islamabad
Total Marks: Obtained Marks:
Date: 25-MAY-2023 Signature:
Computer Programming Lab
Lab Tasks
Task # 1
Design a C++ program that allows the user to dynamically create 1D and 2D arrays
at runtime based on the size provided by the user through the console.
Computer Programming Lab
2
Air University, Islamabad
3
Air University, Islamabad
Computer Programming Lab
Conclusion:
The following are the conclusions:
• In this lab we learn about of dynamic memory allocation.
• In dynamic memory allocation.
• We learn how to print a matrix of any order.
• We learn how we take adjoint of a matrix.
• In this lab we also learn 1D and 2D dynamic memory allocation.