void main()
{
//variable declaration
int a;
int b;
printf("\n Enter the first value");
scanf("%d",&a);
printf("\n Enter the second value");
scanf("%d",&b);
a=a+b;
b=a-b;
a=a-b;
printf("\n After swap the value");
printf("\n value of A=%d",a);
printf("\n value of A=%d",b);
getch();
}
Variables are items, which change their values during the execution of a program. Constants do not change the value during the execution of a program.
Macros are processed at preprocessing time where as constant variables are processed at complie time. Macros doesnot have any scope but constant variables has scope. Macros doesnot have the type checking where as constant variables have type checking.
Public instance variables are not dangerous, but can put your program at risk of being hacked. For instance, say the variable bacon is an integer that represents your health in a game, and its value is 50. Someone could change its value to 1,000,000 by using a program called a decompiler, then change the code, and recompile it.
Variables are storage areas that hold data that can vary during the execution of a program. A symbolic name is the name given to any entity in a program, including variables, constants, functions, procedures and various other stuff.
program. Each variable has a name that serves as an identifier, allowing the program to reference and manipulate the stored value. Variables can hold different types of data, such as integers, strings, or booleans, and their values can be changed throughout the program's execution. This flexibility makes variables essential for managing data and controlling the program's behavior.
Variables are items, which change their values during the execution of a program. Constants do not change the value during the execution of a program.
A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...
A variable is a named object that is mutable. A constant is a named object that is immutable.
Constants are values that remain constant and cannot be changed once they are assigned a value. Variables, on the other hand, can have different values assigned to them and their value can be changed throughout the program. Constants provide a fixed value, while variables provide flexibility and allow for changes in value.
Macros are processed at preprocessing time where as constant variables are processed at complie time. Macros doesnot have any scope but constant variables has scope. Macros doesnot have the type checking where as constant variables have type checking.
In programming, you can change the value of a variable, which is essentially assigning a new value to the variable. The type of data a variable can hold is typically fixed after it's declared, but the actual value can be updated as needed during the program's execution.
A variable is a quantity which changes its value through out the program or its lifetime. But a constant is a quantity which does not change its value through out its life time. There are 5 basic constants.
constant is does not change the value of during the excution of programvariable it changes the value during the excution of program
Two variables are called independent when whatever change in one of them do not influences the value of the other.
Public instance variables are not dangerous, but can put your program at risk of being hacked. For instance, say the variable bacon is an integer that represents your health in a game, and its value is 50. Someone could change its value to 1,000,000 by using a program called a decompiler, then change the code, and recompile it.
Constant variables are variables that, once initialized, do not change in value. They are effectively the same as literal constants, except that you can use symbolic names to make it easier to understand the meaning of the program. For instance, in a trigonometry program, it is easier to use the identifier PI than it is to use the literal 3.1415926535897932. Also, if you have a constant that might be adjustable, such as a factor in an equation, naming it allows you to change its value by changing only one line of code, rather than seeking out all of the lines of code that refer to the factor. Constant variables are also candidates for being placed in read-only memory, potentially making the program more secure.
if two variables are positively related,it means that the two variables change in the same direction.that is,if the value of one of the variables increases,the value of the other variable too will increase.for example,if employment as an economic variable increases in a country,and price of goods too increases then we can say that these two variables(employment and price) are positively related