Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXTENDED AND EXPENDED MEMORY IN C

Status
Not open for further replies.

SirShahzad

Instructor
Jan 23, 2001
9
0
0
FR
Hi,
Please tell me the code.
I want to access the memory beyond 1 mb.
thanx
 

Your question is not very clear. Are you asking for some code that allocates more than 1 MB of memory?

char *buf = NULL;

buf = (char *)malloc(2000000);

This is 2MB.


-Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top