Hello guys … welcome back!!!! We looked at introduction of C++ in
previous post. Now we are going to read some concepts which are common in both
C and C++ because it is important for us
to remember these for next level.
So
here we go!!!
Individual
statement in both language must be ended with a semicolon. For example,
y=x;
x=x+1;
We
can also write like
y=x; x=x+1;
Identifiers:
Identifiers is a name used to
identify a variable and other user define function items. It starts with A to Z,a to z, 0 to 9 digits, an under score
(_). It does not accept either punchuation marks or special characters like
@, $ etc.
Examples
are: abc, ABC, a_234.
Keywords:
Keywords are reserved words. These
words cannot be used as constant or variable or any identifiers.
Examples: char, far, for, return etc.
TRIGRAPHS:
Trigraphs is a sequence of three characters which have an alternative representation
and represents a single character. These sequence starts with two question
marks.
Symbols
|
Represented in Trigraph as
|
#
|
??=
|
\
|
??/
|
^
|
??’
|
~
|
??-
|
{
|
??,
|
}
|
??>
|
All
the compilers do not support trigraphs.
Whitespace:
Whitespace means blank lines. It
describe blanks, tabs, newline characters and comments. It separates one part
from another. It enables the compiler to identify one element from another in a statement.
Int name;
In
above example whitespace is the space between datatype and identifier.
A = B;
In
above example, there are no whitespace characters necessary between A and =, or
= and B. so we are free to include as many white space characters as required.
Thank you for watching my post. My next post will be more exiting. So wait for my next post. If you want to read in details of above topics then click this below link
Until then BYE BYE!!!!
Facebook: CLICK HERE!!!!!!!!!!
Youtube: CLICK HERE!!!!
Comments
Post a Comment