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
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.
You need to provide precise and to the point answer, avoid irrelevant detail.
|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:
Also, See:Cs402 GDB Solution 2021
Dynamic memory Allocation is best for given scenario because::::
- We never want loss our limited resources.
- Data can increase or delete without using extra memory location.
- And you can write more.
cs201 gdb solution 2021
Downlaod solution file from here:
[su_button id=”download” url=”https://forstudy.info/wp-content/uploads/2021/02/CS201-GDB-SOLUTION-2021.docx” target=”blank” size=”6″ wide=”yes” center=”yes”]DOWNLAOD FILE[/su_button]