delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/17:43:25

From: "Matej" <matej DOT baric AT guest DOT arnes DOT si>
Newsgroups: comp.os.msdos.djgpp
Subject: How to reset machnie using pointers?
Date: Mon, 16 Aug 1999 11:23:05 +0200
Organization: ARNES
Lines: 21
Message-ID: <7p8lmn$np3$1@planja.arnes.si>
NNTP-Posting-Host: po2-2a.dial-up.arnes.si
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2417.2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hello!
Here's the code:

int main()
{
    int* i;
    i = (int*)0x0;
    *i = 1;

    return(0);
}

What's wrong with this? Isn't the data to reset at number 0x0???
Thansk in advance,
Matej






- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019