Pointer to Union पॉइंटर टू यूनियन or Pointer of Union पॉइंटर ऑफ़ यूनियन or Union Pointer यूनियन पॉइंटर
A pointer variable of union type which stores the memory address of a union variable of the same type is called a pointer to union or union pointer. एक यूनियन टाइप का पॉइंटर वेरिएबल जो उसी प्रकार के यूनियन वेरिएबल का मेमोरी एड्रेस स्टोर करता है, पॉइंटर टू यूनियन (Pointer to Union) कहलाता है। To access the data members of a union using a union pointer, we use the arrow operator ( -> ). यूनियन पॉइंटर की सहायता से यूनियन के डेटा मेंबर्स को एक्सेस करने के लिए एरो ऑपरेटर ( -> ) का प्रयोग किया जाता है। Syntax Declaration: union union_name *ptr_name; Initialization: ptr_name = &union_variable_name; Accessing union members: ptr_name->data_member; C Program for Pointer to Union #include <stdio.h> #include <conio.h> union student { int roll_no; char name[20]; char gender; float fees; }; void main() { union student s, *p; p = &s; clrscr(); printf("Enter roll no of a student:\n"); scanf("%d", &p->roll_...