A variable is a data name that may be used to store a data value. Unlike constants that remain unchanged during the execution of a program, a variable may take different values at different times during execution. A variable name can be chosen by the programmer in a meaningful way to reflect the program's function or nature.

Variable and Data Types – C Programming

In this “Variable and Data Types – C Programming” you will learn about the following topics:

  1. Constant
  2. Integer Constants, Real Constants, Mantissa E Exponent, Single Character Constants, String Constants, Backslash Character Constants, Format Specifier
  3. Variables
  4. Types of Variables, Rules for the Declaration of Variables, Declaration of Variables, Initialization of Variables
  5. Difference between Constant and Variables
  6. Simple Input/output Functions
  7. How to use scanf() and printf()? Single Character Input and Output, String Input and Output
  8. Data Types in C Language
  9. Primary Data Types
  10. Integer Data Types, Floating Point Data Types, Double, Character Data Type, Void Type
  11. Secondary Data Type
  12. Array Type, Structure Type, Union Type, Function Type, Pointer Type
  13. Operators
  14. Arithmetic or Binary Operator, Relational or Comparison Operator, Assignment Operator, Logical or Boolean Operator, Conditional or Ternary Operator, Comma Operator, Increment/Decrement Operator, Sizeof Operator, Bitwise Operator
  15. Expression
  16. Type Casting and Conversions
  17. Implicit, Explicit
  18. Statements
  19. Simple Statement, Compound Statement, Control Statement



==== Point to Note ====

This article Variable and Data Types – C Programming is contributed by Pawan Tiwari, a student of LA GRANDEE International College (LGIC).

If you like to contribute, you can mail us BCA Notes, BCA Question Collections, BCA Related Information, and Latest Technology Information at [email protected].

See your article appearing on BCA Notes (Pokhara University) main page with your designation and help other BCA Students to excel.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

BCA 2nd Semester C Programming Language Notes Pdf: