-3

To print a var of int in printf you have to %i or %d but what should i add for an unsigned long

user297904
  • 417
  • 1
  • 4
  • 12

2 Answers2

1

%lu is the correct format specifier for an unsigned long

Spikatrix
  • 20,225
  • 7
  • 37
  • 83
1

%lu is the correct format for unsigned long.

Jigar Mistry
  • 352
  • 2
  • 12