CS201 Introduction to Programming GDB Fall 2020 Solution / Discussion Last Date: 16-02-2021
CS201 - Introduction to Programming
Course Announcement Back
GDB for CS-201
Dated:Feb 10, 21
GDB topic has been uploaded on VLUMS. GDB interface will open for two days from 15-Feb to 16-Feb-2021. You can post you answer within given dates. Dates are according to Pakistan Standard Time.
GDB Statement: Modern programming languages like C/C++ support static as well as dynamic memory allocation for variable, object, structures etc. In static allocation, memory is allocated to the program during compile-time. However in the case of Dynamic allocation, memory is allocated during runtime. Both these techniques have their pros and cons and can be used in different scenarios.
Now suppose you are working in an XYZ organization as a C++ developer. Currently, the HR department of the organization is recruiting people for a vacant position in the organization. Software Team of the Organization assigns you the task of developing an application to keep track of the number and records of applicants who have applied for the post. Now keeping in mind that organization has limited number of computational resources available to them, being a C++ developer which type of memory allocation technique (Static or Dynamic) you will be using in this case? Justify your answer with valid reason in either case.
Share the GDB Question & Discuss Here....
Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.
CS201 GDB Fall 2020 Solution idea:
Dynamic memory Allocation is best for a given scenario because