f&
Size: a a a
f&
К
К
A
cpp_gcc
#include <stdio.h>
int main()
{
printf("sizeof char: %d", sizeof(char));
}
1707174054/source.cpp: In function ‘int main()’:
1707174054/source.cpp:5:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("sizeof char: %d", sizeof(char));
^
sizeof char: 1
A
A
A
cpp_gcc
#include <stdio.h>
int main()
{
printf("sizeof char: %d", sizeof(char));
}
1707174054/source.cpp: In function ‘int main()’:
1707174054/source.cpp:5:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("sizeof char: %d", sizeof(char));
^
sizeof char: 1
A
Т8
A
🦊
p
Т8
🦊
🦊
🦊
A
A
CC
char str[4] = "rya";
strcpy(str, "nya"); // work
char* pstr = "rya";
strcpy(pstr, "nya"); // not work
Чаво?CC