Article View: gnu.gcc.help
Article #962casting operator
From: Maya
Date: Sat, 01 Mar 2003 16:18
Date: Sat, 01 Mar 2003 16:18
14 lines
2283 bytes
2283 bytes
size_t num = 3;
std::cout << reinterpret_cast<char*> (num) << std::endl;
Can someone please tell me if there is a problem with the code above, it
keeps giving me a segmentation fault!
Thank in advance.
--
====================== E-Communications Canada =====================
Jorge Escalante - Software Development Coordinator.
E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation of others.
* What does an elephant do when he gets a broken toe?
-He calls a toetruck
Technical Details
Message-ID:
<pan.2003.03.01.11.18.50.909884.1065@canada.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.vif.com!news.vif.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b715bb86231f2439,start X-Google-Attributes: gid11318c,public X-Google-Thread: 114592,b715bb86231f2439,start X-Google-Attributes: gid114592,public X-Google-Thread: fa69e,b715bb86231f2439,start X-Google-Attributes: gidfa69e,public X-Google-ArrivalTime: 2003-03-01 08:20:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.vif.com!news.vif.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 01 Mar 2003 10:20:12 -0600 From: Maya <escalante@canada.com> Subject: casting operator Date: Sat, 01 Mar 2003 11:18:57 -0500 Newsgroups: gnu.gcc.help,borland.public.cpp.borlandcpp,alt.comp.lang.learn.c-c++ Followup-To: gnu.gcc.help Organization: NOME Message-ID: <pan.2003.03.01.11.18.50.909884.1065@canada.com> User-Agent: Pan/0.11.2 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL Cache-Post-Path: www.vif.com!unknown@ip216-239-79-188.vif.net X-Cache: nntpcache 2.4.0b4 (see http://www.nntpcache.org/) Lines: 14 NNTP-Posting-Host: 216.239.64.141 X-Trace: sv3-fWJQUsfXcr3o7rSJe7ZmCKfr37HjP3bwjSExxCi3jKbXW/qeYqbPT6whusbMJjMBx3N7j3v3izoM7oy!gbvIXDmMl4j7NCTXdrT/DFevT/sbnBKzR5vxQCu7Z/RmH6RanbeFIAFdTQERt7Slnu8OE9qmwkaQ!dr7LZozNTOE= X-Complaints-To: abuse@vif.com X-DMCA-Complaints-To: abuse@vif.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1