cs201 gdb solution 2021
Categories
CS201

cs201 gdb solution 2021

Advertisement

Dear students join my telegram group for all assignments, GDBs and Quizzes Solutions. Thanks Join this https://t.me/VUALLINONE

ASLAM U ALAIKUM DEAR STUDENTS NOW I AM UPLOADING THE SOLUTION OF cs201 gdb solution 2021. CS201 GDB Solution Fall 2020.

This is to inform that Graded Discussion Board (GDB) will be opened on 15th February, 2021 for discussion and last date of discussion will be 16Ul February, 2021

Question:

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

Advertisement

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

Advertisement

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.

You need to provide precise and to the point answer, avoid irrelevant detail.

Advertisement
Static Memory Allocation Dynamic Allocation
static Memory is allocated for declared Memory allocation done at the time of variables by the compiler. The memory execution(run time) is known (Increase/delete etc) as dynamic memory allocation During run of program, it can change is allocated during compile time During run of Program its can not

 

The above mentioned discussion tells us:

Dynamic memory Allocation is best for given scenario because::::

  1. We never want loss our limited resources.
  2. Data can increase or delete without using extra memory location.
  3. And you can write more.

cs201 gdb solution 2021

Downlaod solution file from here:

CS201 GDB SOLUTION 2020

Leave a comment