Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Why Doesnt This C Program Crash?

  1. #11
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why Doesnt This C Program Crash?

    Portable to everywhere with a C compiler. Even gcc doesn't fully implement C99 yet. C89/C90 is its default mode, for good reason. (Of course it also supports all kinds of gcc-specific extensions in its default mode.)

    Again, I'm suggesting C89 (ANSI C), not "K & R" C (which implies pre-ANSI).

  2. #12
    Join Date
    Sep 2007
    Location
    /dev/null/
    Beans
    1,589

    Re: Why Doesnt This C Program Crash?

    Thanks, ansi and gnu99 works well
    He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.

  3. #13
    Join Date
    Apr 2007
    Beans
    2,042

    Re: Why Doesnt This C Program Crash?

    Quote Originally Posted by Nullack View Post
    Thanks, ansi and gnu99 works well
    Another thing you can do with C99 is

    PHP Code:
    //C99 has C++ comments and variable declarations in for loops
    //(you don't have to separate declaration and usage)
    for(int i=0i<lol; ++i)

    /*C89 hasn't*/
    int i;
    for(
    i=0i<lol; ++i

  4. #14
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: Why Doesnt This C Program Crash?

    Well, the GNU89 implementation does allow the C++/BCPL-style comments...

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •