bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a bug?


From: Petr Vandrovec
Subject: Re: Is this a bug?
Date: Mon, 12 Aug 2002 12:22:30 +0200

On 12 Aug 02 at 16:45, Hak-Jin Kim wrote:
> Is there anyone who tell me if this is a bug?

Yes, it is bug. In your program.
 
>     double v_values[num_attributes][num_segments][num_levels];
> 
>     for (k=0; k<num_attributes; k++) {
>         printf("(attributes %d)\n", k+1);
>         for (i=0; i<num_segments; i++) {
>             for (j=0; j<=num_levels; j++) {
                         ^^ replace this with '<' and it will work as expected
>                 printf("  %u", &v_values[k][i][j]);
                            ^^ try %p, it is format for printing of pointers
>             }

                                        Petr Vandrovec
                                        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]