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 meaning When we write "#include" what is # and
what does include does there???
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
# refers to pre-processor directives. Pre-processor word
means that the header file following #include is already
processed and their is no chance of it containing any
errors or flaws. User can directly include the header file
in his/her program.
 
Is This Answer Correct ?    93 Yes 13 No
Prof.gagandeep Jagdev
 
Answer
# 2
# is the one of a symbol used by a developer of C language
standards for defining of macros... if you are designing a
compiler you can use a different symbol or may not use these
symbols for definition of macros............ it dosen't have
meaning and since # is a rare symbol used . so it's my guess .

the include words includes the header or any file with
extension to the C source code that the run time or linker
time..... in which may inbuilt functions are available like
printf,clrscr(),scanf() etc etc............


thank u
 
Is This Answer Correct ?    82 Yes 38 No
Vignesh1988i
 
 
 
Answer
# 3
# work as a preprocessor when include is used for to connect
the header file to the complier, we want to write
#include"stdio.h" or <stdio.h> because c has no built-in
function to run the program.like wise we include "conio.h"
which is used for link the clrscr()and getch(),but it is not
so important because we can run the program without using
clrscr() and getch() from the header file "conio.h" but we
never run the program without using <stdio.h>
 
Is This Answer Correct ?    27 Yes 5 No
Singaravel
 
Answer
# 4
# is a symbol, that represent to the complier,the header
files are includes in the program.....include key word is
using to include the header files in c
 
Is This Answer Correct ?    42 Yes 28 No
The Great Elango
 
Answer
# 5
'#' is a preprocessor directive. The compilers processes
lines in a code starting with a '#' before it compiles the
whole code . Example #define TEN 10 the compiler would
replace all instances of TEN by 10 in the code and only then
compile the code . Similarly ,

'#include' - include is a key work which ask the compiler to
also resolve function names and variables names using the
file name specified.
Ex '#include<xyz.h>' indicates the compiler that while
searching resolve function names and/or variable names from
xyz.h file also.
 
Is This Answer Correct ?    17 Yes 10 No
Arjun R
 
Answer
# 6
# is a symbol with the help of which the compiler will
first process the statement following # before compiling
the program. for example if we have something called
#define MAX 100 then the compiler will replace all MAX in
the program with 100 and then compile the program.
Likewise include following # will tell the compiler to
include the header file mentioned in the statement.
ex: #include<stdio.h>


I think all will be satisfied with my answer....!
 
Is This Answer Correct ?    8 Yes 4 No
Kamal
 
Answer
# 7
The # is the Pre-Processor. Means it is a special kind of
program that executed before the actual compilation of the
program. When it executed it performs several tasks like
defining etc. On such operation is the include. The include
tell that the current program requires certain inclusion of
files. Like #include<stdio.h>. Here we are directing the
pre-processor to include the stdio.h header file.
 
Is This Answer Correct ?    12 Yes 9 No
Raghuveer
 
Answer
# 8
# is the main part of the 'c'program.it is used to define
the header file it means that it is used to declare that
header filesfor ex:"#include<stdio.h>".here it is used for
standarad for declaring printf and scanf()
functions.here "#" is the main part.
"#include<conio.h>"
it is used for clrscr() and getch()functions.here
also "#"is the main header file.actually it is preprocessor.
 
Is This Answer Correct ?    14 Yes 11 No
Karthikamburu
 
Answer
# 9
# is a symbol used by the developer of c compiler designer
to define the preprocessor directives. Pre-processor word
means that the header file following #include is already
processed and their is no chance of it containing any
errors or flats. User can directly include the header file
in their program.
The #include use in 2 ways.
1. #include<filename> and
2. #include"filename".
in #include<filename>
if the file is not found there, the compiler checks the
source header directory.If the file is not still found
there,the pre-processor checks the current directory....

in #include"filename"
If the file is not found there the compiler checks the
compile include directory.If the file is still not found
there the pre-procesor checks the source header
directory.
 
Is This Answer Correct ?    2 Yes 1 No
Pooja Gupta
 
Answer
# 10
# -> is the one of to be set in PREPROCESSOR for the c programs it read the header file to process

include -> it's called and link for # and <stdio.h>

< > and " " -> to set character and header file read the programming section


stdio.h -> slandered input output.header it's header file name
to set the our process header file
 
Is This Answer Correct ?    2 Yes 1 No
Sakthivel
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 Infosys 8
how to set Nth bit of variable by using MACRO   3
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); } TCS 9
what is object oriental programing?   1
what is the use of using linked list and array? Infosys 10
what is the difference b/w compiler and debugger? Assurgent 2
What is Full Form of C and Why We use C   16
though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks State-Bank-Of-India-SBI 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
write a program to remove duplicate from an ordered char array? in c   2
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c? Geometric-Software 5
why effort estimation is important?   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