This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); | |
} |
NewerOlder