well, I am trying to build a structure, on a self learning purpose, and while I know other primitive ways of filling the structures, I want it this way. Actually that the user is prompted to enter himself and then it prints as it goes along. However, it does nothing after the scanf.
Of course, the code needs to be more evolved, so that we can get to fill as many structures as we want, such as putting them in a loop and asking the user how many he wants offered etc and also when to call it off, but so far I need to get the grasps of this.
struct MiEstructura // JUST DEFINING THE STRUCTURE
char * Address; // THIS WOULD ACTUALLY BE AN ARRAY OF 50 POINTERS TO TYPE CHAR, NOT CORRECT THEN...
struct MiEstructura Instancia; // NOW 2 INSTANCES OF IT
struct MiEstructura *ptr;
int main ()
ptr = &Instancia;
printf("Enter First Name \n");// nothing happens after I enter a name
printf("Enter Last Name \n");
printf("Enter Address \n");