Search found 1 match

by Topaazy
Sun Feb 11, 2018 6:30 pm
Forum: Chit Chat
Topic: Weird behaviour of prinft(\n)
Replies: 3
Views: 5865

Re: Weird behaviour of prinft(\n)

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 ...

Go to advanced search