hi
i have written structure program to print structure variable
Program doesn't give as I supposed to do. It doesn't print age and weightCode:#include <stdio.h> struct person { int age; float weight; }; int main() { struct person *personPtr; /*hold address of structure Variable type struct person */ personPtr->age = 30; personPtr->weight=56; printf("Age: %d\n", personPtr->age); printf("weight: %f", personPtr->weight); return 0; }