Skip to content

Instantly share code, notes, and snippets.

temp.c:5:13: warning: length modifier 'I64' results in undefined behavior or no effect with 'd' conversion specifier [-Wformat]
scanf("%I64d", &a);
~^~~~
temp.c:5:20: warning: format specifies type '__int64 *' (aka 'long long *') but the argument has type 'int *' [-Wformat]
scanf("%I64d", &a);
~~~~~ ^~
%d
#include <stdio.h>
#define WIDTH 6
void output(int value, int depth) {
if (depth == 0)
return;
output(value >> 1, depth-1);
printf("%d", value & 1);
}