delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/05/26/02:30:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "aveo" <rahul DOT h AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem in for loop (TC++ IDE)
Date: 25 May 2005 23:23:47 -0700
Organization: http://groups.google.com
Lines: 12
Message-ID: <1117088627.434718.210400@g14g2000cwa.googlegroups.com>
NNTP-Posting-Host: 61.11.16.131
Mime-Version: 1.0
X-Trace: posting.google.com 1117088632 27677 127.0.0.1 (26 May 2005 06:23:52 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 26 May 2005 06:23:52 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse AT google DOT com
Injection-Info: g14g2000cwa.googlegroups.com; posting-host=61.11.16.131;
posting-account=JJCVog0AAADHxD7cpVHFH_Oih7K2jhME
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi all,
I came accross some problem in executing for loop.

void main()
{
   for(;0;cout<<1)
          cout<<2;
}

         it gives me 21 as an output instade of blank output. Please
let me know the reason behind it, as early as possible.

- Raw text -


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