gcc, segmentation fault error
1 Attachment(s)
When i try to run the binary of the source code attatched i get this error
Code:
Enter Item number: 12 |
forgotten & signs in scanf
|
Your forgetting to reference the variables in scanf. Also, if you want input (or output) with slashes, your FORMAT string should reflect that:
Code:
scanf("%d/%d/%d", &month, &day, &year); |
I can't believe i forgot that :( thanks :)
|
All times are GMT -5. The time now is 09:14 AM. |