What is the meaning When we write "#include" what is # and
what does include does there???
Answer Posted / arjun r
'#' 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 ? | 25 Yes | 13 No |
Post New Answer View All Answers
What is difference between structure and union with example?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Do pointers take up memory?
What is masking?
What is a macro in c preprocessor?
What is indirection?
What is define c?
Is there a way to switch on strings?
How do you initialize pointer variables?
What are disadvantages of C language.
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Why we use stdio h in c?
where are auto variables stored? What are the characteristics of an auto variable?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is difference between union All statement and Union?