When you're having problems, your first response should not be to cast. Casting is rarely the right thing to do. In the case here, you have an int. Why would you try to copy a string into it? ...
Type: Posts; User: cas
When you're having problems, your first response should not be to cast. Casting is rarely the right thing to do. In the case here, you have an int. Why would you try to copy a string into it? ...
scanf("%d", contacts[contact_ctr-1].PhoneNum);
When reading an integer with scanf(), you must pass the address of the int, not the int itself, so scanf() knows where to write (you always need to...