Search:

Type: Posts; User: oogabooga

Search: Search took 0.02 seconds.

  1. Replies
    10
    Views
    3,839

    I still think this is an error in the Pelles C...

    I still think this is an error in the Pelles C compiler.


    This program:

    #include <stdio.h>

    void printDoubleBits(double d) {
    int i, j, cnt = 0;
    char *c = (char*)&d;
  2. Replies
    10
    Views
    3,839

    @manasij: Now that I think about it, I see that...

    @manasij: Now that I think about it, I see that you're right. :) I wonder what the difference is between the two compilers.
  3. Replies
    10
    Views
    3,839

    That's certainly true about floating point values...

    That's certainly true about floating point values generally, but it's not the problem in this case since the numbers are all integral (albeit contained in a double).

    I forgot to mention that main...
  4. Replies
    10
    Views
    3,839

    Your program works correctly with gcc, so it...

    Your program works correctly with gcc, so it appears to be a Pelles C problem (I've encountered other problems with it). gcc is much better. You can use an IDE like Codeblocks with it (or others)....
Results 1 to 4 of 4