This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

different output from the gcc


Hello to all,

the following program prints different outputs on the terminal.

#include <stdio.h>
int main()
{
    int i=10, j=20;
    printf("%d %d");
    return 0;
}


on windows nt, prints : 38076236 1627415320
on RH linux    , prints : 20 10
on sun solaris , prints : 67584 -1341572

what is the reason ?

with regards,
Mahadev


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]