There are times when I use stdbool.h while practicing coding. At this time, if the format modifier of scanf is given as %d, the following error message occurs.
c:\project\hello\hello\hello.c(11): warning C4477: 'scanf' : format string '%d' requires an argument of type 'int *' but variadic argument 3 has type 'bool'
It seems to compile, but it doesn't seem to properly recognize true/false or 0/1 inputs at runtime. I wonder if there's something I'm missing out on.