Skip to main content
added 3 characters in body
Source Link
Alejandro Caro
  • 1.1k
  • 1
  • 11
  • 25

The right format to read a uint64_t (typedef unsigned long long int) is, with scanf and not sscanf, "%" SCNu64 and for print is also SCNu64.

ExampleSCNu64 Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and to write the same but with printf.

The right format to read a uint64_t (typedef unsigned long long int) is, with scanf and not sscanf, "%" SCNu64 and print is also SCNu64.

Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and to write the same but with printf.

The right format to read a uint64_t (typedef unsigned long long int) is, with scanf and not sscanf, "%" SCNu64 and for print is also SCNu64 Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and to write the same but with printf.

added 12 characters in body
Source Link
Alejandro Caro
  • 1.1k
  • 1
  • 11
  • 25

The right format to read a uint64_t uint64_t (typedef unsigned long long int) is, with scanfscanf and sscanf not sscanf, "%" SCNu64"%" SCNu64 and print is also SCNu64 format.

Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); scanf ("Value of integer:%" SCNu64, & my_integer); and imprmirloto write the same but with printf.

The right to read a uint64_t (typedef unsigned long long int) is, with scanf and sscanf not, "%" SCNu64 and print is also SCNu64 format.

Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and imprmirlo the same but with printf

The right format to read a uint64_t (typedef unsigned long long int) is, with scanf and not sscanf, "%" SCNu64 and print is also SCNu64.

Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and to write the same but with printf.

Source Link
Alejandro Caro
  • 1.1k
  • 1
  • 11
  • 25

The right to read a uint64_t (typedef unsigned long long int) is, with scanf and sscanf not, "%" SCNu64 and print is also SCNu64 format.

Example. in your code you read for example my_integer variable, then you do scanf ("Value of integer:%" SCNu64, & my_integer); and imprmirlo the same but with printf