Tariqul Islam
New Member
- Messages
- 182
- Reaction score
- 0
- Points
- 0
What is Variable
Variable is a programming element that is used to store different changeable values. On the other hand variable is a name of an area of some bytes in memory that is used to store changeable data temporarily in the memory. After finishing the work of the program or after shutting down the computer, the data or value stored in the variable is destroyed.
What is Constant
Constant is a programming element that is used to store different fixed and not changeable values. It is used in the program to make the source code clear and easy to edit. Say, you are writing a program that takes a value from the user and add it with a fixed value, say 500 and substruct the value from the fixed value 500. Now you can put this 500 in a constant. By doing this you make your source code clear.
What is Function
Function is a group of command that is used to calculate something in the program. Function returns a value after finishing its process. Function is used in the program to make the program shorten. Say, we have to calculate the average of four values in 10 different locations of our program. If an average can be calculated by using 5 lines then we have to write 50 lines. But by using function we can write these 5 lines once and use it when we need.
If you want to view the tutorials like that pls visit http://cyberkutir.com/forum/viewforum.php?f=8
Variable is a programming element that is used to store different changeable values. On the other hand variable is a name of an area of some bytes in memory that is used to store changeable data temporarily in the memory. After finishing the work of the program or after shutting down the computer, the data or value stored in the variable is destroyed.
What is Constant
Constant is a programming element that is used to store different fixed and not changeable values. It is used in the program to make the source code clear and easy to edit. Say, you are writing a program that takes a value from the user and add it with a fixed value, say 500 and substruct the value from the fixed value 500. Now you can put this 500 in a constant. By doing this you make your source code clear.
What is Function
Function is a group of command that is used to calculate something in the program. Function returns a value after finishing its process. Function is used in the program to make the program shorten. Say, we have to calculate the average of four values in 10 different locations of our program. If an average can be calculated by using 5 lines then we have to write 50 lines. But by using function we can write these 5 lines once and use it when we need.
If you want to view the tutorials like that pls visit http://cyberkutir.com/forum/viewforum.php?f=8