Why is conio.h not required when we save a file as .c and
use clrscr() or getch() ?

Answers were Sorted based on User's Feedback



Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?..

Answer / kuldeep yadav

not only conio.h , also stdio.h we dont need while saving a
C program with the extension '.c'... but in recent turbo C
or borland C compilers only it's allowing , it may be to
reduce the time of typing these files to include rather
getting automatically included.....

Is This Answer Correct ?    6 Yes 1 No

Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?..

Answer / vignesh1988i

not only conio.h , also stdio.h we dont need while saving a
C program with the extension '.c'... but in recent turbo C
or borland C compilers only it's allowing , it may be to
reduce the time of typing these files to include rather
getting automatically included.....

and even we can type main() instead of void main() , it is
accepting with the warning.............


thank u

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More C Interview Questions

List some of the dynamic data structures in C?

0 Answers  


What is 'bus error'?

0 Answers  


Explain what are run-time errors?

0 Answers  


What type of function is main ()?

0 Answers  


1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.

4 Answers  






Is main an identifier in c?

0 Answers  


What is null pointer in c?

0 Answers  


What is #ifdef ? What is its application?

0 Answers   TCS,


how the compiler treats any volatile variable?Explain with example.

1 Answers   Tata Elxsi,


Give the logic for this #include<stdio.h> #include<conio.h> void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

2 Answers   Accenture,


Why are all header files not declared in every c program?

0 Answers  


Write a program to find minimum between three no.s whithout using comparison operator.

4 Answers   IBM,


Categories