Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Structure in C programming

Rating
-
Sold
-
Pages
18
Uploaded on
14-11-2024
Written in
2024/2025

Detailed notes of structure in C programming

Institution
Course

Content preview

UNIT-9 DYNAMIC MEMORY
ALLOCATION




1

,Dynamic Memory Allocation (DMA)
▪ Since C is a structured language, it has some fixed rules for
programming.
▪ One of it includes changing the size of an array. An array is
collection of items stored at continuous memory locations.




▪ As it can be seen that the length (size) of the array above made is
9. But what if there is a requirement to change this length (size).
For Example,

, Dynamic Memory Allocation (DMA)
▪ If there is a situation where only 5 elements are needed to be
entered in this array. In this case, the remaining 4 indices are just
wasting memory in this array. So there is a requirement to lessen
the length (size) of the array from 9 to 5.
▪ Take another situation. In this, there is an array of 9 elements with
all 9 indices filled. But there is a need to enter 3 more elements in
this array. In this case 3 indices more are required. So the length
(size) of the array needs to be changed from 9 to 12.


▪ This procedure is referred to as Dynamic Memory Allocation in C.

Written for

Institution
Course

Document information

Uploaded on
November 14, 2024
Number of pages
18
Written in
2024/2025
Type
Class notes
Professor(s)
Brijesh panchal
Contains
All classes

Subjects

$3.69
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
shreelgandhi

Also available in package deal

Get to know the seller

Seller avatar
shreelgandhi Sardar Vallabbhai Patel Institute of Technology
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
16
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions