This is my code:
when i compile and run it, it stops working and doesn't printf the integer.Code:int main() { int num; printf("Please enter a number: "); scanf("%d", num); printf("%d\n", num); return 0; }
This is my code:
when i compile and run it, it stops working and doesn't printf the integer.Code:int main() { int num; printf("Please enter a number: "); scanf("%d", num); printf("%d\n", num); return 0; }