|
-
Feb 21st, 2003, 05:54 AM
#6
No, the type names are symbols.
There are 5 parts of code: keywords, operators, literals, symbols and comments.
Comments are lines that start with // or blocks enclosed by /* ... */.
Keywords are all reserved words: int, float, if, while, break, return, class...
Literals are explicit values: 4, 23.1, 0xe3, 'A', "Hello"
Operators are, well, operators: +, -, %, &, *, ...
Symbols are everything else. In
Code:
/* Define an array */
int my_array[12]; // Array is 12 elements large
int is a keyword, [] is an operator, 12 is a literal. /* ... */ and // ... are comments. my_array is a newly defined symbol. Whenever after it appears in the code the compiler knows that you are referring to that array.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|