Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
How to find the starting and ending address of Heap memory for a program?

Is there any way to find the starting and ending address of heap memory.

#include<stdio.h>
void main()
{
    printf("Ending address of Heap: %x\n",sbrk(0)); 
}

The above coding shows the ending address of heap memory. Like that is there any way to find the starting address of heap.

Output:

Ending address of Heap: 8556000

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

On Linux you can open file /proc/self/maps, for example with fopen, and read it until you find line like this:

0060f000-00630000 rw-p 00000000 00:00 0 [heap]

0060f000-00630000 - address range of heap

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!