For those you need to use the macros from inttypes.h
such as SCNd64
or SCNu32
etc.
scanf("%" SCNd32, &x);
More Related Contents:
- Disadvantages of scanf
- What does `scanf(“%*[^\n]%*c”)` mean?
- Hangman code in C
- ‘ ‘, ‘\n’ , scanf() and output screen
- sscanf Beginner in C
- i get Error while trying to compile and Run, [Linker error] undefined reference to `scand’ [closed]
- Segmentation fault using scanf() [closed]
- What is the effect of trailing white space in a scanf() format string?
- How to prevent scanf causing a buffer overflow in C?
- How to do scanf for single char in C [duplicate]
- Why does scanf() need “%lf” for doubles, when printf() is okay with just “%f”?
- C – scanf() vs gets() vs fgets()
- Scanf skips every other while loop in C
- Reading string from input with space character? [duplicate]
- Reading in double values with scanf in c
- Why scanf must take the address of operator
- fgets instructions gets skipped.Why?
- How to scanf only integer and repeat reading if the user enters non-numeric characters?
- scanf won’t ask for input the second time [duplicate]
- Reading a string with spaces with sscanf
- How can I prevent scanf() to wait forever for an input character?
- Why scanf(“%d”, […]) does not consume ‘\n’? while scanf(“%c”) does?
- Scanf causes C program to crash
- using scanf function with pointers to character
- How can I fix the scanf to take data into the array?
- Format specifier in scanf for bool datatype in C
- Dynamic String Input – using scanf(“%as”)
- whitespace in the format string (scanf)
- Read int values from a text file in C
- Getting multiple values with scanf()