Search found 1 match
Search found 1 match • Page 1 of 1
- Sun Feb 11, 2018 6:30 pm
- Forum: Chit Chat
- Topic: Weird behaviour of prinft(\n)
- Replies: 3
- Views: 5865
Your problem is undefined behaviour, and that's why you're getting the warnings. Warnings are indications that something is actually wrong. printf is a variadic function, so it needs some information about the types of the arguments. That's the job of the format specifiers (eg. %d). %d tells printf ...