Guest_imported
New member
- Jan 1, 1970
- 0
How would i go about exiting this function with an input 'X' from the keyboard when the name is read in.
any help would be greatly appreciated....thanks )
any help would be greatly appreciated....thanks )
Code:
int i;
for(i=0;i<=9;i++,*ptr++)
{
printf("\n\tName : ");
scanf("%s",&ptr->name);
printf("\n\tID : ");
scanf("%d", &ptr->identity);
}