Using the red OR the green will have the same result (will access the struct in the same way)?
Code:#include <stdio.h> struct Info{ float amount; char fname[30]; char lname[30]; }rec; int main(void){ struct Info rec; printf("Enter the whole name:\n"); scanf("%s %s", rec.fname, rec.lname); printf("Please now enter the amount:\n"); scanf("%f", &rec.amount); printf("Mr %s %s gave an amount of %.2f $.\n", rec.fname, rec.lname, rec.amount); return 0; }