Thursday, October 15, 2020

basic data type of C++

basic data type of C++

  1. Print character through ASCII value using cout in C++
  2. 4.11 — Chars
  3. “C++ int to char*” Code Answer
  4. 4.12 — Literals
  5. std::dec, std::hex, std::oct
  6. std::oct , std::dec and std::hex in C++
  7. C++ cout hex values?
  8. Input/output manipulators
  9. String literals
  10. Integer literals

  11. Floating point literal
  12. suffix, if present, is one of f, F, l, or L. The suffix determines the type of the floating-point literal:
    (no suffix) defines double
    f F defines float
    l L defines long double

  13. Types of Literals in C/C++ with Examples
  14. What's the C++ suffix for long double literals?
  15. C - Constants and Literals
  16. C Floating-Point Constants
  17. Floating-point literals
  18. C library function - strlen()
  19. C++ Standard Library headers

  20. Fundamental types
  21. Built-in types (C++)
  22. Built-in types (also called fundamental types) are specified by the C++ language standard and are built into the compiler. Built-in types aren't defined in any header file. Built-in types are divided into three main categories: integral, floating-point, and void. Integral types represent whole numbers. Floating-point types can specify values that may have fractional parts. Most built-in types are treated as distinct types by the compiler. However, some types are synonyms, or treated as equivalent types by the compiler.

    Void type
    The void type describes an empty set of values. No variable of type void can be specified. The void type is used primarily to declare functions that return no values or to declare generic pointers to untyped or arbitrarily typed data. Any expression can be explicitly converted or cast to type void. However, such expressions are restricted to the following uses:

    1. An expression statement. (For more information, see Expressions.)
    2. The left operand of the comma operator. (For more information, see Comma Operator.)
    3. The second or third operand of the conditional operator (? :). (For more information, see Expressions with the Conditional Operator.)

  23. Comma Operator: ,
  24. Sequential-Evaluation Operator
  25. Conditional Operator: ? :
  26. ODULE 2 C AND C++ PROGRAM CONSTRUCT AND BASIC DATA TYPES 1
  27. MODULE 2_1 C AND C++ CONSTRUCTS AND BASIC DATA TYPES 2
  28. MODULE 2a MORE ON C/C++ CONSTRUCTS AND BASIC DATA TYPES 3
  29. MODULE 2b FINAL PART C/C++ CONSTRUCTS AND BASIC DATA TYPES 4
  30. How to enter the value of EOF in the terminal
  31. C LAB WORKSHEET 6 C scanf(), scanf_s() family 1
  32. C LAB WORKSHEET 6_1 C scanf(), scanf_s() Examples & Exercises 2
  33. C LAB WORKSHEET 6_2 C scanf(), scanf_s() Exercises 3
  34. C LAB WORKSHEET 5_2 C/C++ Variable, Operator And Type 3
  35. C LAB WORKSHEET 5_1 C/C++ Variable, Operator And Type 2
  36. C LAB WORKSHEET 5 C/C++ Variable, Operator And Type 1

No comments:

Post a Comment