ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what is the difference between #include<stdio.h> and 
#include "stdio.h" ?
 Question Submitted By :: Sourisengupta
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between #include<stdio.h> and #include "stdio.h" ?
Answer
# 1
in case of <stdio.h>  this will be checking only the folder
containing  C compiler...... as we will be describing the
path in the directories option in the IDE.....


in case of "stdio.h"  this will be checking the entire hard
disk there by deleting the path given in the directories
explicitly .....


thank u
 
Is This Answer Correct ?    7 Yes 0 No
Vignesh1988i
 
  Re: what is the difference between #include<stdio.h> and #include "stdio.h" ?
Answer
# 2
When we use #include<stdio.h>, the compiler will look at the
compiler's directory for stdio.h file and then include it.
When we use #include"stdio.h", it will look in the source
code's directory for the stdio.h file.

"" are basically used when the header file is placed with
the source code(means .c or .cpp files), not in the C
Compiler's 'include' directory. It is basically used to
include our own self generated header files into our program.
 
Is This Answer Correct ?    3 Yes 0 No
Jasbir Singh
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the difference between #include<stdio.h> and #include "stdio.h" ?  2
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?  6
what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); } Infosys14
#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? } NDS9
what is the difference between declaration ,defenetion and initialization of a variable? LG-Soft5
How can draw a box in cprogram without using graphics.h header file & using only one printf(); ? NIIT1
What's the difference between calloc() and malloc()?  3
Write a program to print all the prime numbers with in the given range ABC1
how to find the kth smallest element in the given list of array elemnts. Silicon5
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k); HCL6
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.  3
what is the difference between entry control and exit control statement?  2
what are the various memory handling mechanisms in C ? HP3
What compilation do? Geometric-Software7
write an interactive program to generate the divisors of a given integer. TCS4
what does " calloc" do? Cadence6
How can I find out how much memory is available? Persistent1
How to receive strings with spaces in scanf()  4
#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean? Intel4
why r u join this company? give solid resons. Infosys7
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com