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 (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
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 ?    239 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 ?    49 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 ?    18 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
 
a C prog to swap 2 no.s without using variables just an array? TCS 5
can you change name of main()?how? Siemens 3
Why preprocessor should come before source code?   2
what is the value of b if a=5; b=++a + ++a Infosys 27
Will Macros support multiple arguments ? Oracle 7
write a c program to print the next of a particular no without using the arithmetic operator or looping statements? TCS 1
how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com Honeywell 3
Please write the area of a RIGHT ANGLED TRIANGLE.   1
write a program for 7*8 = 56 ? without using * multiply operator ? output = 56 Xavient 5
how to implement stack operation using singly linked list   2
Why doesn't the code "a[i] = i++;" work?   4
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }   3
 
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