Posted in

data structure using c in Variable Definition in hindi | freetoolpt

Computer 

कंप्यूटर पर कोई भी Operation करने के लिए कुछ डाटा की रिक्वायरमेंट होती है उसे Data को computer के Memory में Save किया जाता है जब कि Memory अलग अलग cells में बंटी होती है और cell का अपना अलग अलग Address होता है। 
Data को access प्राप्त करने के लिए या store करने के लिए उन datas को Variable या Constant के नाम से जाना जाता है।

Variable 

Variable एक नाम या Entity को कहा जाता है जो कि Programming में एक बार में केवल एक एक value को store करता है तथा साथ ही इसकी value, Program के Executive/Run time पर बदला भी जा सकता है।

Declaration of variable 

Program में किसी variable को use करना है तो सबसे पहले इसे बनाते हैं जिसमें यह बताया जाता है कि वेरिएबल किस प्रकार का data type है  ( int, char, void, float, etc) memory में कितना जगह address लेगा।

Syntax 

Data type Variable;
Syntax के आधार पर किसी भी variable को निम्न प्रकार Declare किया जा सकता है।
Example:
int x;
X एक integer (int) प्रकार का variable है और यह केवल और केवल Integer value को ही store करेगा।

Initialisation of Variable 

किसी वेरिएबल के बने डिक्लेरेशन के बाद इसको कोई एक वैल्यू असाइन देने की प्रक्रिया को इंटेलाइजेशन कहा जाता है किसी वेरिएबल के value को दो प्रकार से डिक्लेयर किया जाता है।

Static Initialization

इस प्रकार का initialization Program में Variable Declaration के साथ ही इसकी कोई ना कोई value assin कर दी जाती है। 
जैसे 
Void main ()
{
Int x;// यहां पर x नाम का और Integer types का बनाया गया है 
x=10;// यहां पर x value 10 initialize/Assign किया गया है।

Leave a Reply

Your email address will not be published. Required fields are marked *