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 (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
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 ?    247 Yes 10 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 ?    51 Yes 10 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 43 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 ?    32 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 ?    19 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 ?    11 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
 
Program to write some contents into a file using file operations with proper error messages.   2
In which category does main function belong??   4
Why Modern OS are interrupt driven?Give an example   2
How to access or modify the const variable in c ? HP 15
#include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } what is the output for this? IIIT 3
how to find out the reverse number of a digit if it is input through the keyboard?   6
Program to find larger of the two numbers without using if-else,while,for,switch iNautix 11
What is the difference b/w Structure & Union?   3
how to use virual function in real time example CTS 1
what is the difference between arrays and linked list Tech-Mahindra 26
program to find the second largest word in a paragraph amongst all words that repeat more thn twice iGate 4
what is difference b/w extern & volatile variable?? Teleca 6
 
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