C does not support Methods inside structure.
Reason :
╔═[■]═══════════════════════║#include <stdio.h>║#include <conio.h>║║struct temp║{║ int a;║ get_data()║ {
printf("Enter value of a : ");║ scanf("%d",&a);║ }║}T;║║void main()║{║ T.get_data();║}
saved file as ".c" fileError : Function May not be part of structure of Unionand same code will run if you save file as ".cpp"