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 (2253)
 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
 
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; } Satyam 3
What is the main differences between C and Embedded C?   6
write a program to compare 2 numbers without using logical operators? IBM 5
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145] Calsoft 6
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); } Infosys 7
sir, i cannot find the way how to write aprogram by using array on queue IISIT 1
What is a pointer? IFFCO 1
What kind of sorting is this? SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort Accenture 3
write a c program that if the given number is prime, and their rearrangement(permute) of that number is also prime. Ex: Input is "197" is prime Output: 791,917,179 is also prime. Please any one tell me tha code for that   2
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast. Verifone 5
what is the difference between getch() and getche()? Infosys 7
how do we remove the printed character in printf statement and write next it it   1
 
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