I am using bool datatype in C std99 whose definitions are defined in . Now I want the user to give me input. What format specifier I must use i
There is none.
Use a temp object as the size of _Bool is implementation dependent.
_Bool
#include <stdbool.h> #include <stdio.h> bool b; int temp; scanf("%d", &temp); b = temp;