Constant and Variable

  1. y = x + 5, See the expression carefully.
  2. It is clear that if we change the value of x the value of y is also changed but the 5 remains the same every time.
  3. So, x and y are the variables but 5 is a constant.
Previous Back to C Programming index Next

Comments

Popular posts from this blog

String in golang

Inline V/S Block Level Element

Floating point Data types in Go lang

Escape Sequence | Formatted Printing | Interview Questions

Sum of two numbers

Operators in C Language| Part-4

Printing in C programming

Arrays in C Language

Program to check a year is leap year or not.

Data types in Java