I am trying to understand How pointer of structure store variable value
This is my code
Code:
#include <stdio.h>
struct Name
{
int account_number; // structure member type integer
float balance; // structure member type float
};
int main ()
{
struct Name *account; //pointer to structure type struct
account-> account_number = 101;
account-> balance = 10000.00;
return
}
I don't understand what happens in these two lines
Code:
account-> account_number = 101;
account-> balance = 10000.00;
account is structure variable that point structure member type of int
account is structure variable that point structure member type of float