Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Dynamic memory allocations
Closed Thread
Old 04-28-2005, 11:02 AM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 145

Mohan Giri

Default Dynamic memory allocations

Can we allocate memory dynamically using malloc and calloc functions for multi dimensional arrays?
Mohan Giri is offline  
Old 06-13-2005, 01:18 AM   #2 (permalink)
 
Newb Techie

Join Date: Jun 2005

Posts: 18

warrior1981

Default

i think so....
we can probbly check out for the sizeof() and then verify it to malloc and calloc statements.
warrior1981 is offline  
Old 06-17-2005, 12:34 PM   #3 (permalink)
 
Newb Techie

Join Date: Jun 2005

Posts: 2

param

Default

Yes, we can dynamically allocate memory for multi-dimensional array using malloc and calloc.

::aram:::
param is offline  
Old 06-17-2005, 02:10 PM   #4 (permalink)
Chankama's Avatar
 
Monster Techie

Join Date: Jan 2005

Location: Canada

Posts: 1,522

Chankama will become famous soon enough

Default

of course .. Just give it the size of the mem block u need..
Chankama is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On