What is conio.h and why do we use?

Last Updated :

The word conio.h stands for console input-output and in programming, console means output window which is the window where the result of the execution of our program is displayed.

This console window is automatically produced by our operating system and has some default settings.

‘conio.h’ is a header file used in C and C++. Most people don’t use it because it was used in older compilers such as Turbo C. Also note that conio.h is not part of the standard C library and the GCC compiler does not support it.

The header file conio.h provides use some very important function that helps us to manage this setting some of the important functions are given by the header file conio.h are-

  1. clrscr(); used for clearing the window of the console.
  2. color(); used for changing the font color of the console window.
  3. getch(); used for pushing the console window.
  4. gotoxy(); used for setting cursor position on the console window.

Please write comments if you find anything incorrect. A gentle request to share this topic on your social media profile.

Comment
Next Article
RKplus Published 11 May, 2020 · 1 min read
Article Tags :

Similar Reads

  • Four Pillars of Object-Oriented Programming (OOPS)

    Get an overview of four pillars of object-oriented programming (OOP) and see their suitable real life examples. What is OOP? Picture a cluttered garage🛠️. Tools are scattered everywhere,…

    4 min read
  • What is Overriding in C++

    Write a program in C++ to depict the concept of overriding or Dynamic polymorphism. Overriding is a type of polymorphism. Polymorphism in OOP languages means to take more…

    2 min read
  • What should we use void main() or int main() ?

    There is question that what should we use void main() or int main() ? void main() { /* ... */ } Or, int main() { /* ... */…

    2 min read
  • C Comments

    Prerequisite – C Language Introduction C comments explain code and improve readability. These do not affect program execution. You can use comments in C to clarify code and describe…

    1 min read
  • What is Object-Oriented Programming

    OOPs stands for Object Oriented Programming. OOP is a programming style with Classes, Objects, Inheritance, Polymorphism, Encapsulation, Abstraction. Before OOP, Procedural Programming like C was used, based on…

    2 min read
  • Code editors

    Code editors are where programmers spend most of their time. There are two main types of code editors: IDEs and Lightweight editors. IDEs (Integrated Development Environments) IDEs (Integrated…

    1 min read