Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: C Compiler

  1. #1
    Regular Coder
    Join Date
    Jun 2006
    Location
    UK
    Posts
    922
    Thanks
    302
    Thanked 3 Times in 3 Posts

    Question C Compiler

    Hi,

    Just wondering if Borland C++ Compiler version 5.5 works for C language also?

    If not, can u plz refer me with a similar free C compiler?


    Thanx

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by cancer10 View Post
    Hi,

    Just wondering if Borland C++ Compiler version 5.5 works for C language also?
    any c++ compiler is also a c compiler that means that borland is also a c compiler.
    maybe I'm wrong but borland compiler is not free, you can't use it to build and sale your application using the free version.
    Anyway because my information about it is pretty old you must check yourself if is true or not.

    If not, can u plz refer me with a similar free C compiler?
    gcc is free. work on linux and windows, compiler and cross-compiler for many language including c and c++.

    regards

  • #3
    Regular Coder
    Join Date
    Jun 2006
    Location
    UK
    Posts
    922
    Thanks
    302
    Thanked 3 Times in 3 Posts
    ok I downloaded Bloodsheed Dev C++

    I am trying to run this code

    Code:
    #include <stdio.h>
    
    int main()
    {
        printf("\n");
        printf("Hello World");
        printf("\n");
    }

    It compiles ok, and a DOS screen comes for a few milliseconds and disappears.

    Why is this hapenning? And How/Where do I see the output?

    Sorry, I am new to C.


    Thanx

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by cancer10 View Post
    It compiles ok, and a DOS screen comes for a few milliseconds and disappears.

    Why is this hapenning? And How/Where do I see the output?
    because the program finish his execution,
    I have many years from my last working contact with windows, so I don't know what's changed, but I remember that have a DOS prompt, try to use it, or reboot and use windows in dos mode.

    regards

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Add a getc() of getchar() function at the end, so that your program would wait for a keyboard hit.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by oesxyl View Post
    or reboot and use windows in dos mode.
    Lol, that feature died a long time ago with the 9x line.
    OracleGuy


  •  

    Posting Permissions

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