Monday, January 31, 2011

I compiled a small test program in C, but when I run it, I get no output!

I compiled a small test program in C, but when I run it, I get no output!


You probably compiled the program into a binary named test, didn't you? Linux has a program called test, which tests if a certain condition is true, it never produces any output on the screen. Instead of just typing test, try: ./test

No comments:

Post a Comment