problem with C and Gcc 2.95.3

From: Ale (hiolzat_private)
Date: Fri May 25 2001 - 12:19:50 PDT

  • Next message: Yuri Polyansky: "Re: problem with C and Gcc 2.95.3"

    I can't run this program:
    
    include <stdio.h>
    main () {
    char buff[10];
    int i;
            for (i=0;i<10;i++){
                    buff[i]='.';
            }
            for (i=0;1<10;i++){
                    printf("%d",buff[i]);
            }
    }                             
    
    The program return:
    
    ..........ÿ¿Hùÿ¿¾l@tùÿ¿|ùÿ¿„tùÿ¿Hùÿ¿ƒl(@ 
    tùÿ¿¨k@xö@Aðtùÿ¿˜„À¤@lùÿ¿0.@»úÿ¿¿úÿ¿Ðúÿ¿úúÿ¿   
    ûÿ¿(ûÿ¿Pûÿ¿cûÿ¿…ûÿ¿—ûÿ¿©ûÿ¿»ûÿ¿Çûÿ¿Ðûÿ¿êûÿ¿ôûÿ¿Òýÿ¿Ýýÿ¿þýÿ¿-þÿ¿Gþÿ¿\þÿ¿iþÿ¿}þÿ¿…þÿ¿“þÿ¿žþÿ¿©þÿ¿¶þÿ¿¾þÿ¿Êþÿ¿ 
      ÿÿ¿ÿÿ¿/ÿÿ¿=ÿÿ¿Kÿÿ¿\ÿÿ¿jÿÿ¿uÿÿ¿€ÿÿ¿²ÿÿ¿Áÿÿ¿Ðÿÿ¿äÿÿ¿òÿÿ¿4 @        ƒ
     
    ÿùƒ¶úÿ¿i686./5PWD=/root/prg/myLTDL_LIBRARY_PATH=/root/.kde/lib:/usr/libLC_MESSAGES=itHOSTNAME=localhost.localdomainLD_LIBRARY_PATH=/root/.kde/lib:/usr/libLESSKEY=/etc/.lessLESSOPEN=|/usr/bin/lesspipe.sh 
    %sLANGUAGE=it_IT:itENV=/root/.bashrcPS1=[\u@\h \W]\$ 
    KDEDIR=/usrLESS=-MMBROWSER=/usr/bin/netscapeUSER=rootLS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.Segmentation 
    fault (core dumped)    
    
    I have compiled this with gcc version 2.95.3        
    
    It's a bug ?
    



    This archive was generated by hypermail 2b30 : Fri May 25 2001 - 22:31:11 PDT