By zrydento, on December 5th, 2009
The following article gives a brief overview of the structure in C/C++. The structure was first introduced in C where the need to group variables into a single record arose. Variables normally were assigned a single value or were assigned multiple values of the same type (array). The introduction of the structure allowed for variables to
Continue reading Overview of a structure in C and C++
By zrydento, on November 25th, 2009
The logical negation operator ! [exclamation] used in C++ and many other languages. However the return value of the operator is overlooked by many people.
The syntax of the operator follows is
! cast-expression
Where, the cast-expression operand must be of scalar type (returning only a single value, not multiple values like an array)
The result is of type int
Continue reading C++ Logical Negation Operator
Comments