कम्प्यूटर की प्राथमिक मैमोरी में स्टोर किए गए डेटा की लोकेशन को दिया गया नाम, वेरिएबल कहलाता है। जब हम अपने कंप्यूटर/लैपटॉप पर कोई जानकारी (डेटा) स्टोर करना चाहते हैं, तो हम इसे कंप्यूटर की मेमोरी स्पेस में स्टोर करते हैं। उस मेमोरी स्पेस के जटिल पते को याद रखने के बजाय जहां हमने अपना डेटा संग्रहीत किया है, हमारा ऑपरेटिंग सिस्टम हमें फोल्डर बनाने, उन्हें नाम देने का विकल्प प्रदान करता है, ताकि हमारे लिए उसे ढूंढना और उस तक पहुंचना आसान हो जाए। इसी प्रकार सी भाषा में जब हम अपने प्रोग्राम में कुछ डेटा वैल्यू का उपयोग करना चाहते हैं तो हम इसे मेमोरी स्पेस में स्टोर कर सकते हैं और मेमोरी स्पेस को नाम दे सकते हैं ताकि इसे एक्सेस करना आसान हो जाए।
किसी पते के नामकरण को चर के रूप में जाना जाता है। चर स्मृति स्थान का नाम है। निरंतर के विपरीत, चर परिवर्तनशील होते हैं, हम किसी प्रोग्राम के निष्पादन के दौरान एक चर के मान को बदल सकते हैं। एक प्रोग्रामर सार्थक चर नाम चुन सकता है। उदाहरण: औसत, ऊंचाई, आयु, कुल आदि।
Read more : What is Keywords?