FIND THE ANSWERS

What is difference between #include and #define?

Answer this question

  • What is difference between #include and #define?


Answers

Answer #1 | 20/12 2013 05:11
include adds the contents of a file to the source code.
Positive: 58 %
Answer #2 | 20/12 2013 09:50
#define defines a word to be replaced by another as in #define PI 3.1415926536 so whenever the compiler sees the word PI it replaces it with 3.1415926536 include means just like it seems -- replace this line with the contents of the file specified #include means go get the file stdio.h and read it in as text as part of the source code
Positive: 52 %

Possible answer

difference between const and #define,what is the difference between const and #define,macros,#define,const. tutorials embedded system Linux device driver, ...
Read more
Positive: 58 %
As a newcomer to programming and C++, I wondered what the difference between: #define SIZE 10 and const int SIZE=10 From doing my own research, I ...
Read more
Positive: 53 %
This example pinpoints an important difference between a function call and ... variadic macros #include #include #define PR(X ...
Read more
Positive: 39 %
... it will include the file only ... It makes little difference on a small ... // a.h #ifndef INCLUDED_A #define INCLUDED_A #ifndef INCLUDED_BASE #include ...
Read more
Positive: 16 %

Show more results