Posted inC Programming
How to Pass structure pointer to function in C
https://youtu.be/DKEO6v5lylo #include <stdio.h> struct MyStruct { char a; int i; }; void print_structure(struct MyStruct *sptr){ printf("Value of a is = %c\n",sptr->a); printf("Value of i is = %d\n",sptr->i); } int main()…