www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/06/08:45:39

From: Laurence Withers <lwithers AT lwithers DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Hi
Date: Sun, 6 Sep 1998 13:15:25 +0100
Organization: IP
Message-ID: <6GVjRKAdzn81Ewb5@lwithers.demon.co.uk>
References: <199809041845 DOT OAA15564 AT delorie DOT com> <35f14cd8 DOT 0 AT news4>
NNTP-Posting-Host: lwithers.demon.co.uk
MIME-Version: 1.0
Lines: 24
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

--- Original Message ---
Time: Sat, 5 Sep 199822:40:04

>>#include <stdio.h>
>>
>>         int
>>         main ()
>>         {
>>           printf ("%d \n" 10    //*
                            ^ insert comma here
>>          / 2    //*/
>>            1
>>            );
>>           return 0;
>>         }

There is a small problem in the code, which is shown above. This program
should print '5' in C++ or '10' in C.

HTH, and bye for now,
-- 
Laurence Withers, mailto:lwithers AT lwithers DOT demon DOT co DOT uk
Integrated Peripherals Operating System Project Leader || OPES Project
Projects' homepage is at: http://www.lwithers.demon.co.uk/       Leader

- Raw text -


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