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

What do you mean by c?

0 Answers  


write a program to find lcm and hcf of two numbers??

1 Answers  


why 'c' is called middle level language.

2 Answers  


Determine if a number is a power of 2 at O(1).

2 Answers  


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

0 Answers  






explain memory layout of a C program

2 Answers  


What is time null in c?

0 Answers  


Explain what are global variables and explain how do you declare them?

0 Answers  


Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?

8 Answers   Mascot, TCS,


Write a program to generate prime factors of a given integer?

2 Answers  


plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 Answers  


What is 'bus error'?

0 Answers  


Categories