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 |
|
Go4Expert Member
|
|
| 12Jul2008,19:35 | #3 |
|
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 |
|
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 |
|
Solved.
I used getch(); and it worked
|
|
Ambitious contributor
|
![]() |
| 13Jul2008,12:22 | #6 |
|
Nice to hear mate
|

