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

Answers were Sorted based on User's Feedback



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

Answer / shahab

# include<stdio.h>--- It searches one directory i.e
specified list of directory.
# include"stdio.h"---- It searches two i.e specified list
of directory & current directory.

Is This Answer Correct ?    66 Yes 10 No

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

Answer / mytri

#include<stdio.h>--Search from current directory
#include"stdio.h"--Search from list of directories that are
included in path

Is This Answer Correct ?    61 Yes 28 No

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

Answer / mini bangar

when we write #include<stdio.h> preprocessor search for it in include directory directly.but when we write "stdio.h" precessor start searching for this header file from current directoryand then in parent directories.

Is This Answer Correct ?    25 Yes 5 No

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

Answer / sreekanth

#include "stdio.h"
The compiler will search for a particular stdio.h in the
current working directory only

where as <stdio.h> the complier looks into default dir.
which is in most cases /include/lib or you can define this
directory by your own.

Is This Answer Correct ?    30 Yes 14 No

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

Answer / sanjay chandra

#include<stdio.h> /* stdio.h is searched in c:\TCP\INCLUDE
folder. If not found gives compilation error

#include "stdio.h" first searches for stdio.h in
c:\TCP\BIN(current diretory) . If not found searches
c:\tcp\include\ for stdio.h file

Is This Answer Correct ?    21 Yes 7 No

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

Answer / rakesh simar

include<stdio.h> is a part of hedrfile and & it means standard input(scanf) &output(printf)

Is This Answer Correct ?    3 Yes 14 No

Post New Answer

More C Interview Questions

Why shouldn’t I start variable names with underscores?

0 Answers  


What are conditional operators in C?

0 Answers   Adobe,


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

0 Answers   IBM,


fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }

17 Answers   NDS,


will u please send me the placement papers to my mail???????????????????

0 Answers  






how to find the sizof of any datatype using bit manipulations

3 Answers  


What is variable in c with example?

1 Answers  


how to find a 5th bit is set in c program

4 Answers   IBM,


How to convert a binary number to Hexa decimal number?? (Note:Do not convert it into binary and to Hexadecimal)

1 Answers   iLantus, Subex,


Explain 'far' and 'near' pointers in c.

0 Answers  


What is a null pointer in c?

0 Answers  


What is the difference between near, far and huge pointers?

0 Answers  


Categories