C and C++ Programming Resources | C & C++ Code Example Index





The C++ Data Types, Operators, Operands and Operations Sample Codes Index Page


The following links provides the C++ program examples on the fundamental of the C++ program constructs. The examples include data types, operators, operands, statements and expressions. Those examples demonstrated using simple examples such as basic mathematical operations, printing to the standard output and viewing the data type sizes.


C++ Data Types Code Samples)

  1. The integer representation of the ASCII character set C++ program example

  2. How to use the variables, operators, operands and data types in C++ programming

  3. Displaying various C++ data types code sample

  4. Another C++ program example displaying various data types

  5. Printing various C++ data types on the standard output

  6. Showing the size of data types C++ code sample

  7. Testing the Boolean data type - true/false, 0/1 or yes/no in C++

  8. Printing the address of the stored char pointer variable C++ code example


C++ Operators, Operands and Operations Code Samples


  1. A very simple C++ operators and operands program example

  2. Calculate hours, minutes and seconds for the given seconds in C++ programming using modulus operator

  3. Calculate the circumference and area of a circle for the given radius C++ program example

  4. Using the C/C++ comments program example

  5. Calculate the area for the given width and length C++ source code example

  6. Concatenating using the << operator C++ program example


C and C++ Programming Resources | C & C++ Code Example Index | C Code Example Index