C Compiler

Go4Expert Member
12Jul2008,18:10   #1
cancer10's Avatar
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
Ambitious contributor
12Jul2008,18:39   #2
GreenGrass's Avatar
This one works for C/C++

Download: http://www.bloodshed.net/devcpp.html
Go4Expert Member
12Jul2008,19:35   #3
cancer10's Avatar
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
Ambitious contributor
13Jul2008,03:11   #4
GreenGrass's Avatar
You need to put a "PAUSE" so you can see like:

i am not sure how it works in C but in C++ it is like this

system("PAUSE >nul");
return EXIT_SUCCESS;
}
Go4Expert Member
13Jul2008,07:50   #5
cancer10's Avatar
Solved.

I used getch(); and it worked
Ambitious contributor
13Jul2008,12:22   #6
GreenGrass's Avatar
Nice to hear mate