:: 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                      
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)
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  
# 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 ?    98 Yes 14 No
Prof.gagandeep Jagdev
# 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 ?    85 Yes 40 No
# 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 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 7 No
# 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 ?    43 Yes 29 No
The Great Elango
# 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 ?    19 Yes 10 No
Arjun R
# 6
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 ?    13 Yes 9 No
# 7
# 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
# 8
# is the main part of the 'c' 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() "#" is the main part.
it is used for clrscr() and getch()
also "#"is the main header file.actually it is preprocessor.
Is This Answer Correct ?    14 Yes 11 No
# 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
Is This Answer Correct ?    2 Yes 1 No
Pooja Gupta
# 10
The #include directive tells the preprocessor to treat the contents of a specified file as if those contents had appeared in the source program at the point where the directive appears.
About '#' and "include"
The '#' sign tells the preprocessor, which scans the code before sending it to the compiler, to do something.

"include" tells the preprocessor that the following file is to be included in the compiling process.
Is This Answer Correct ?    1 Yes 0 No

Other C Interview Questions
  Question Asked @ Answers
write a program to delete an item from a particular location of an linear array?   1
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?   4
struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));   2
how to reverse string "Hello World" by using pointers only. Without any temp var   1
1,1,5,17,61,217,?,?.   3
While(1) { } when this loop get terminate is it a infinite loop?   5
How do you access command-line arguments?   1
sir, i cannot find the way how to write aprogram by using array on queue IISIT 1
difference between spiral and waterfall model   1
suppose there are five integers write a program to find larger among them without using if- else   2
I didn't count the ducks that I saw in line, but I do remember that one duck was in front of two ducks, another duck behind two ducks. How many ducks did I see?   2
what is the difference between i++ and ++i?   5
For more C Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::