There is none.
Use a temp object as the size of _Bool
is implementation dependent.
#include <stdbool.h>
#include <stdio.h>
bool b;
int temp;
scanf("%d", &temp);
b = temp;
More Related Contents:
- Read no more than size of string with scanf()
- What does `scanf(“%*[^\n]%*c”)` mean?
- Whitespace before %c specification in the format specifier of scanf function in C
- Why scanf(“%d”, […]) does not consume ‘\n’? while scanf(“%c”) does?
- How do you type something on the same line of text in C [closed]
- How to use sscanf in loops?
- Why does scanf ask twice for input when there’s a newline at the end of the format string?
- C: Multiple scanf’s, when I enter in a value for one scanf it skips the second scanf [duplicate]
- When should I use ampersand with scanf()
- scanf: “%[^\n]” skips the 2nd input but ” %[^\n]” does not. why?
- What does space in scanf mean? [duplicate]
- Does scanf() take ‘\n’ as input leftover from previous scanf()?
- What is the purpose of the h and hh modifiers for printf?
- printf not printing on console
- Going through a text file line by line in C
- difference between %ms and %s scanf
- Reading a single character in C
- Max string length using scanf -> ANSI C
- Get scanf to quit when it reads a newline?
- C – trying to read a single char from stdin (and failing) w/ scanf / getchar
- Program doesn’t execute gets() after scanf(), even using fflush(stdin)
- scanf(“%c”) call seems to be skipped
- Why is adding a leading space in a scanf format string recommended?
- If statements not working?
- Strange character after an array of characters
- While-loop ignores scanf the second time
- Using scanf and fgets in the same program?
- What are scanf(“%*s”) and scanf(“%*d”) format identifiers?
- scanf not working. need to read double from console
- Scan multiple integers without knowing the actual number of integers