Science, asked by Kaifkhan2912, 1 year ago

Difference between stdio.h and conio.h in c

Answers

Answered by frank55oops
8
stdio.h - Standard input and Output header file. It has definitions of functions like printf() and scanf(). It takes and input from user and displays output either in a file or console.

conio.h - Console input and output. It also does the same as stdio.h but operates only via console. It was used earlier in Turbo C & DOS and has become obsolete now a days.
Answered by Pratham2508
0

Answer:

Standard input and output header file: stdio.h

  • Function definitions like printf() and scanf are included (). It accepts user input and outputs it either in a file or on the console.
  • Functions that deal with standard input and output are declared in the stdio.h header file. Fdopen(), one of these functions, can only be used in POSIX programs.

Consol input and output are handled by conio.h.

  • It performs the same functions as stdio.h but only through the console.
  • It was previously employed in Turbo C and DOS but is no longer in use.
  • Users can interact with operating system programs and other console apps through the Console, a window of the operating system.
  • Text input from the standard input (often the keyboard) or text display on the standard output makes up the interaction (usually on the computer screen).

#SPJ3

Similar questions