• Call Us: +91 9437911966
  • Email Us: info@studentstutorial.com
  • Home
  • C Examples
  • Server Side
    • PHP
    • Java
    • CodeIgniter
    • Laravel
    • JSP
    • JDBC
  • Frontend
    • HTML
    • CSS
    • Javascript
    • jQuery
    • AJAX
    • FPDF
    • TCPDF
  • APP & DB
    • Android
    • Cordova
    • SQL
    • Oracle
  • Project
C Tutorial C Introduction C Characteristic C Comments C Operator C Assign Operator C Arithmetic Oper.. C Logical Operator C Modulus Operator C Variable C Initialise Variable C Print F C Translators C Programming C Control Flow C If Else Statement C Nested If Else C Loops C While Loops C For Loops C Do While C Nested Loops

Variable Declarations in C

  • Students Tutorial
  • 08 jun 2020
   

  1. Name of the memory location is called a variable.
  2. Before using any variable in the program, it must be required to declare first.
  3. Declaration of variable means required to specify data type, name of the variable followed by same-order.
  4. In ‘c’ programming language variables required to declare on top of the programming after opening the body by writing first statement.
  5. In declaration of d variable, name of the variable must be required to state with alphabet or underscore only.
  6. In declaration of the variable, existing key words, operators, separators, constants are not allowed.
  7. In declaration of the variable, max.length of variable name is 32 characters, after 32 characters compiler will not consider remaining characters.
  8. Data Type variable or Data Type Var1, var2, var3,

  9. When we are using multiple variables of the same data type then recommended using comma as a separator.
  10. According to syntax, at least single space must be required b/w data type and name of the variable.
Student Tutorial is a online tutorial for web design and development. Here you can find easy example and explanation for each tutorial.
Copyright © 2016-2023 Student Tutorial

Server Side

  • PHP
  • Java
  • CodeIgniter
  • Laravel
  • JSP
  • JDBC

Frontend

  • HTML
  • CSS
  • Javascript
  • jQuery
  • AJAX
  • FPDF

App & Database

  • Android
  • Cordova
  • SQL
  • Oracle