Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   conio.h required for getch?? (http://www.go4expert.com/forums/conioh-required-getch-t10242/)

boygenius 25Apr2008 22:50

conio.h required for getch??
 
the getch() function is defined in conio.h.
However the getch() works perfectly without including conio.h in the program.
the same thing is also applicable to some other functions such sqrt(),malloc() etc.
are these functions defined in stdio.h also or is there something else i don't know.

is this okay or do i have some problem with my compiler.

i am using turbo c/c++ to compile my programs.

shabbir 26Apr2008 10:46

Re: conio.h required for getch??
 
The function is only defined in the headers file mentioned under the help but sometimes when you include one header file it internally include some other files and so you can use them but it depends on the compiler you are using and when you use some other compiler then it will not work as expected.


All times are GMT +5.5. The time now is 21:12.