Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Viewed less than a minute ago

9kkxV7DnRu2LsGdF

C gcc 12.1.0

Created at 1 minute ago

Created by anonymous

Author

anonymous

1 minute ago

Language

C

Compiler

gcc 12.1.0

Options
Warnings
C11(GNU)
-pedantic
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D

Author

anonymous

1 minute ago

x.js
›
99
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main() {
const int x = 10;
int* y = &x;
*y = 20;
printf("x = %i\n", x);
return 0;
}
›
⌄
9
1
2
3
4
5
6
console.log("x");
console.log(typeof meow);
exports.y = function() {
console.log("y");
};

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:6:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    6 |     int* y = &x;
      |              ^
x = 20
Exit Code:
0
セオライド・テクノロジー㈱株式会社フィックスターズ
Siv3D