hi everybody, anybody can tell me the way , how can i check my 'c' program output at dos prompt plz. confirm this ASAP. thanks Amit
if u cannot see the output jus add a line in the end of the program Code: getch(); If it returns any error include the conio.h header at the beginning
write the getch(); at the end of the program. getch(); is used for get one character from the user. by doing that after execution of the program it will hold the screen and when you press any key then it will go to source code.
It depends why you can't see the output already. Does the window appear briefly then disappear before you get a chance to look at it? If so prompting for input as the last thing is one solution; running the EXE from a command prompt opened at the right place is another.