cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Need explanation of some reserved words
Need explanation of some reserved words
May 2, 2011 at 7:32pm UTC
Sibuns
(15)
Hey!
Can somebody explain what is reserved word: inline(in c++; objective-oriented programming)
And can you write an example?
Ty for your help
May 2, 2011 at 8:06pm UTC
GodPyro
(151)
A reserved word is a word which cannot be used in naming of variables, functions etc. The reason for that is that word has connected functionality which is intrinsic to C++.
Here are a list of reserved words:
http://www.cppreference.com/wiki/keywords/start
Here is a reference to the inline command:
http://www.cplusplus.com/forum/articles/20600/
Example of use of inline:
1
2
3
inline
int
functionA(
int
a ) { ... }
Last edited on
May 2, 2011 at 8:07pm UTC
May 3, 2011 at 7:09am UTC
Sibuns
(15)
I still dont get it what this reserved word inline does :D
May 3, 2011 at 7:36am UTC
writetonsharma
(1461)
Read about prolog and epilog. And you will understand how inlining helps.
Topic archived. No new replies allowed.