top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between: #include <stdio.h> and #include "stdio.h"?

+3 votes
771 views
What is the difference between: #include <stdio.h> and #include "stdio.h"?
posted Nov 5, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

<stdio.h> is a header file which available in include directory of the system. When we write #include<stdio.h> preprocessor search for it in include directory directly and not out of this directory. But when we write "stdio.h" precessor start searching for this header file from current directory and then in parent directories. So if we write our own stdio.h in the current directory and include in program as #include"stdio.h" then our header will be included instead of system header.

answer Nov 5, 2015 by Shivaranjini
+1 vote

In other way standard header files can use directly <> symbol it reduces the processing delay, user defined header files must use "", to include as header file.

answer Nov 13, 2015 by Manohar Venkat.ch
...