ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2254)
 C++ interview questions  C++ Interview Questions (1111)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (646)
Question
what is the difference between <stdio.h> and "stdio.h"
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
<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.
 
Is This Answer Correct ?    236 Yes 9 No
Shuvransu_banerjee
 
Answer
# 2
if angular brackets <> are used it indicates that the file
is to be found in one if the standard directories in the
system.
the quotes " " surrounding the file name indicates that an
alternative set of directive should be searched to find the
file in question
 
Is This Answer Correct ?    48 Yes 9 No
Vikesh
 
 
 
Answer
# 3
the <stdio.h> is located a particular Directory which is
having in Header Direcectory. But "Stdio.h" is can we
activate any where of other Directories.
 
Is This Answer Correct ?    69 Yes 42 No
Madhu
 
Answer
# 4
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.
 
Is This Answer Correct ?    31 Yes 8 No
Vishal
 
Answer
# 5
The preprocessor <stdio.h> means that the directory is
predefined one.

but we specify "stdio.h" in their program that indicates
that the preprocessor is an userdefind one
 
Is This Answer Correct ?    17 Yes 3 No
Bathakarai
 
Answer
# 6
#include<stdio.h> this command look for the file stdio.h
in the specified list of directories only

and

#include"stdio.h" would look the file stdio.h in the current
directory as well as the specified list of directories as
mentioned in the include search path
 
Is This Answer Correct ?    10 Yes 5 No
Shipra
 
Answer
# 7
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.
 
Is This Answer Correct ?    17 Yes 13 No
Puneet
 
Answer
# 8
When we write <stdio.h> that mean we can access this header
file from the include directory,but if this header file is
not present in this folder and its available in other
directory then it not access it.But when we write the
"stdio.h" then we can access this header file which
available in any other directory..
In short #include"stdio.h" is best option for ERROR free program
 
Is This Answer Correct ?    2 Yes 1 No
Kiran Shelke,aurangabad
 
Answer
# 9
#include<stdio.h> does not search the source directory,if
we write #include"stdio.h" it will search the source path
first end include that path
 
Is This Answer Correct ?    8 Yes 8 No
Arun.k
 
Answer
# 10
hello in simple way-

when we are using #include<stdio.h> in our program here no
need for search the header files in directory. but when we
are using the #include"stdio.h" in our program firstly
header files search in current directory/parent directory.
 
Is This Answer Correct ?    6 Yes 6 No
Kuldeep
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Famous puzzles which are generally asked by companies during interviews ? Yahoo 1
write a program to swap two variables a=5 , b= 10 without using third variable   5
what is mallloc()?how it works? Excel 4
How does free() know how many bytes to free?   8
How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation. HCL 1
how can we Declare a variable in c without defining it. TCS 1
Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc   4
difference between my-strcpy and strcpy ? Geometric-Software 3
what is develop in c language   2
what is the difference b/w compiler and debugger? Assurgent 2
what is difference between ANSI structure and C99 Structure? Wipro 1
write a program in C to swap two variables Marlabs 7
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com