- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between constants and variables?
In simple words, a variable is a value that is changing or that has the ability to change. A constant is a value that remains unchanged.
The key difference between constants and variables is that constants are fixed values and variables are varying values in an algebraic expression.
Example: In x + z = 8, x and z are variables and 8 is a constant
- Related Articles
- Difference between ++*p, *p++ and *++p in c++
- Difference between ++*p, *p++ and *++p in C
- Difference between constants and final variables in Java?
- Difference between const char* p, char * const p, and const char * const p in C
- Difference between %p and %x in C/C++
- Difference between P-Type and N-Type Semiconductor
- Difference between C++ string constants and character constants
- What is the difference between class variables and instance variables in Java?
- What is the difference between dynamic type variables and object type variables?
- Difference between P-N Junction Diode and Zener Diode
- What is the difference between global and local variables in Python?
- What is the difference between global and local Variables in JavaScript?
- Given that ( frac{4 p+9 q}{p}=frac{5 q}{p-q} ) and ( p ) and ( q ) are both positive. The value of $frac{p}{q}$ is
- If the distance between the points $(4, p)$ and $(1, 0)$ is 5, then find the value of $p$.
- What is data storage? the terms data objects, variables, and constants concerning data storage?

Advertisements