Your message dated Mon, 10 Nov 2008 10:56:44 +0000 with message-id <20081110105644.00f254cf@bobcat> and subject line Re: "amol verule" <averule@gmail.com> has caused the Debian Bug report #505183, regarding bug in gcc ..printf not showing expected output to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 505183: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505183 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---Package: gcc
- To: submit@bugs.debian.org
- Subject: bug in gcc ..printf not showing expected output
- From: "amol verule" <averule@gmail.com>
- Date: Mon, 10 Nov 2008 16:18:32 +0530
- Message-id: <[🔎] 4a3308bd0811100248h7023914erc30093db079648e8@mail.gmail.com>
Version: 4:4.2.2-2
i am getting different output for my c program in debian and other linux distro .
#include<stdio.h>
int main()
{
int i=3;
printf("%d",i);
return 0;
}
output is
root@boss[student]#./a.out
root@boss[student]##
but
expected output or in other linux distro i am getting output is
root@boss[student]#./a.out
root@boss[student]#9
root@boss[student]#
--
Verule Amol R.
BOSS Team Member
--
Verule Amol R.
--- End Message ---
--- Begin Message ---
- To: "amol verule" <averule@gmail.com>, 505183-done@bugs.debian.org
- Subject: Re: "amol verule" <averule@gmail.com>
- From: Chris Lamb <lamby@debian.org>
- Date: Mon, 10 Nov 2008 10:56:44 +0000
- Message-id: <20081110105644.00f254cf@bobcat>
amol verule wrote: > int i=3; > printf("%d",i); ^^^^^ The difference you are seeing is your shell responding differently to your program failing to output a trailing newline. If you modify your program to: [..] int i=3; printf("%d\n",i); [..] .. everything will Just Work. You can confirm that GCC is correctly outputting the number using strace if you so wish. Regards, -- ,''`. : :' : Chris Lamb `. `'` lamby@debian.org `-Attachment: signature.asc
Description: PGP signature
--- End Message ---