Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between <stdio.h> and "stdio.h"? [duplicate]

Tags:

c

Possible Duplicate:
what is the difference between #include <filename> and #include “filename”

In both cases there is no error ...Is there any difference between them ?

like image 998
Parikshita Avatar asked Oct 02 '10 11:10

Parikshita


People also ask

What is the difference between stdio.h and Stdlib H?

One easy way to differentiate these two header files is that “<stdio. h>” contains declaration of printf() and scanf() while “<stdlib. h>” contains declaration of malloc() and free(). In that sense, the main difference in these two header files can considered that, while “<stdio.

What is the difference between stdio.h and conio H?

conio talks directly to the hardware, stdio goes through the STDIO traps, so it can be redirected to a file, through a pipe to another program, or even to the serial port. As a result, stdio is line oriented and conio is full screen oriented.


1 Answers

<stdio.h> searches in standard C library locations, whereas "stdio.h" searches in the current directory as well.

Ideally, you would use <...> for standard C libraries and "..." for libraries that you write and are present in the current directory.

like image 191
Alan Haggai Alavi Avatar answered Sep 19 '22 15:09

Alan Haggai Alavi