Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1091667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:33:56+00:00 2026-05-16T23:33:56+00:00

For debugging reasons, how can one in a C program print some memory address?

  • 0

For debugging reasons, how can one in a C program print some memory address?

For instance, how should I do to print the content of address 0x611268 in form of a 4 byte float?

I know I could use a debugger, but I mean, to print out in screen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:33:57+00:00Added an answer on May 16, 2026 at 11:33 pm
    #include <stdio.h>
    
    int main(void)
    {
      // pointer to int (4bytes) that points to memory address 0x611268
      int* address = (int *)0x611268; 
    
      printf("Memory address is: 0x%x\n", address);
    
      // Note that this address should exist on your process' memory or 
      // the line below will cause a Segmentation Fault
      *address = 0xdead; //assign a value to that address
    
      printf("Content of that address is: 0x%x\n", *address);
    
      return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Debugging a PHP program, is there any add-on/plug-in for browser which I can view
For some reason, Visual Studio can't seem to find the debugging symbols for VC++
I'm facing an issue here. For Facebook debugging reasons, I made a host entry
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
Debugging an iterator method in VS2010 SP1 (with DEBUG settings... no compiler optimization), one
For some fantastic reason I find myself debugging a problem in a Classic ASP
I Was explaing some module to one of my friend and i had to
I've downloaded a softphone called Express Talk, the one thing this program lacks is
When debugging with GDB during one debug session it becomes slower and slower over
How can I reduce the number of loaded dlls When debugging in Visual C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.