C++ Programs
A C++ program is a collection of one or more subprograms, called functions • A subprogram or a function is a collection of statements that, when activated (executed), accomplishes something • Every C++ program has a function called main • The smallest individual unit of a program written in any language is called a tokenAll the operators listed exist in C++; the fourth column "Included in C", states whether an operator is also present in C. Note that C does not support operator overloading. When not overloaded, for the operators && , ... The formatting of these operators means that their precedence level is unimportant.
Special symbols
• +• -
• *
• /
• .
• ;
• ?
• ,
• <=
• !=
• ==
• >=
Symbols (continued)
• Word symbols − Reserved words, or keywords − Include: • int • float • double • char • void • returnIdentifiers
• Consist of letters, digits, and the underscore character (_)• Must begin with a letter or underscore
• C++ is case sensitive
• Some predefined identifiers are cout and cin
• Unlike reserved words, predefined identifiers may be redefined, but it is not a good idea
https://www.tutorialspoint.com/cplusplus/cpp_operators.htm
Really interesting and informative post! Thanks for sharing with us.
ReplyDeletePython