

InterviewSolution
Saved Bookmarks
1. |
What are variables |
Answer» Variable is a name assigned to a memory location to store the data. The data that a variable can store depends on data type for example x=20,y=20.5 , z=\'hello\'. Here x y and z are name of three variables all of them are holding different data depending of their type e.g x is holding integer type data y is holding float type and z is holding string data. Basically all this data is stored in the memory and it is accessed by its name called variables. We can also say variable is a refrence to a memory location where the data js stored and we can easily access the data from memory using these variables. | |