Logo Search packages:      
Sourcecode: gcc-2.96 version File versions

bug-70710.c

#include <stdio.h>                           
#include <stdlib.h>                                         
#include <float.h>                         
                                                                    
int                                  
main()                                            
{                                                       
    int i; 
    double wn[11]; 
                                      
    for(i=0;i<9;i++) 
    {        
        printf("i=%d\n", i); 
        wn[i]=(double)(i+1); 
    } 
    wn[i]=2.0;                                                               
 
    for(i=0;i<10;i++) { 
       printf("wn[%d]=%f\n", i, wn[i]); 
    }              
    return(0);                                                 
} 

Generated by  Doxygen 1.6.0   Back to index