Posts

Showing posts from October, 2026

Pointer in C Language (पॉइंटर)

 Introduction to Pointer A pointer is a special type of variable in C language that stores the memory address of another variable. Unlike ordinary variables, which store data values, a pointer stores the address where a particular data value is located in computer memory. C language provides pointers to access and manipulate memory directly. Pointers are widely used in arrays, strings, structures, unions, functions, and dynamic memory allocation. सी लैंग्वेज में पॉइंटर (Pointer) एक विशेष प्रकार का वेरिएबल होता है, जो किसी दूसरे वेरिएबल का मेमोरी एड्रेस संग्रहित करता है। सामान्य वेरिएबल में डाटा की वैल्यू संग्रहित होती है, जबकि पॉइंटर वेरिएबल में उस मेमोरी स्थान का एड्रेस संग्रहित होता है, जहाँ डाटा रखा जाता है। C लैंग्वेज में पॉइंटर का प्रयोग मेमोरी को एक्सेस तथा मैनेज करने के लिए किया जाता है। पॉइंटर का प्रयोग Array, String, Structure, Union, Function तथा Dynamic Memory Allocation आदि में किया जाता है। Definition of Pointer A pointer is a variable that stores the memory address of...

Union (यूनियन) in C Language – Definition, Syntax, Initialization and Examples

Introduction to Union A union is a user-defined data type in C language. It is also known as a heterogeneous or non-homogeneous data type because it can contain members of different data types. Union is used to group different types of data elements under a single name. It is declared using the union keyword. C लैंग्वेज में यूनियन (Union) एक यूजर डिफाइन्ड डाटा टाइप है। इसे हेटेरोजिनस या नॉन-होमोजिनस डाटा टाइप भी कहा जाता है, क्योंकि इसमें विभिन्न डाटा टाइप के मेम्बर्स को एक साथ डिफाइन किया जा सकता है। यूनियन को union कीवर्ड की सहायता से बनाया जाता है। इसका प्रयोग विभिन्न प्रकार के डाटा को एक ही नाम के अंतर्गत संग्रहित करने के लिए किया जाता है। The main difference between a structure and a union is that in a structure, each member has its own memory location, whereas in a union, all members share the same memory area. स्ट्रक्चर तथा यूनियन में मुख्य अंतर यह है कि स्ट्रक्चर में प्रत्येक मेम्बर के लिए अलग-अलग मेमोरी आवंटित होती है, जबकि यूनियन में सभी मेम्बर्स एक ही मेमोरी स्थान को शेयर ...

Structure (स्ट्रक्चर) in C Language – Definition, Syntax, Initialization and Examples

Introduction to Structure A structure is a user-defined data type in C language. It is used to group different types of data elements under a single name. A structure is also known as a heterogeneous or non-homogeneous data type because it can contain members of different data types. स्ट्रक्चर (Structure) C लैंग्वेज का एक यूजर डिफाइन्ड डाटा टाइप है। इसका प्रयोग विभिन्न प्रकार के डाटा एलीमेंट्स को एक ही नाम के अंतर्गत संग्रहित करने के लिए किया जाता है। स्ट्रक्चर को हेटेरोजीनियस या नॉन-होमोजीनियस डाटा टाइप भी कहा जाता है, क्योंकि इसमें विभिन्न डाटा टाइप के मेम्बर्स को एक साथ रखा जा सकता है। For example, if we want to store the information of a student, we may require the following data: Roll Number (Integer) Name (Character Array) Gender (Character) Fees (Float) इन सभी डाटा एलीमेंट्स के डाटा टाइप अलग-अलग हैं। यदि हम इन सभी को अलग-अलग वेरिएबल में संग्रहित करते हैं, तो इन्हें एक साथ मैनेज करना कठिन हो सकता है। Structure provides a convenient way to store all these related data elements tog...