🎄T
Size: a a a
🎄T
К
К
void f1()
{
int a=1, b=2, c=3;
}
void f2()
{
int a, b, c;
printf ("%d, %d, %d\n", a, b, c);
}
int main()
{
f1();
f2();
};
🎄T
К
🎄T
🎄T
К
ГС
🎄T
cpp_clang
#include <iostream>
void f1()
{
int a=1, b=2, c=3;
}
void f2()
{
int a, b, c;
printf ("%d, %d, %d\n", a, b, c);
}
int main()
{
f1();
f2();
};
source_file.cpp:4:8: warning: unused variable 'a' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:4:13: warning: unused variable 'b' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:4:18: warning: unused variable 'c' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:10:28: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:9: note: initialize the variable 'a' to silence this warning
int a, b, c;
^
= 0
source_file.cpp:10:31: warning: variable 'b' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:12: note: initialize the variable 'b' to silence this warning
int a, b, c;
^
= 0
source_file.cpp:10:34: warning: variable 'c' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:15: note: initialize the variable 'c' to silence this warning
int a, b, c;
^
= 0
6 warnings generated.
-1688387992, -1688387976, 32
🎄T
cpp_clang
#include <iostream>
void f1()
{
int a=1, b=2, c=3;
}
void f2()
{
int a, b, c;
printf ("%d, %d, %d\n", a, b, c);
}
int main()
{
f1();
f2();
};
source_file.cpp:4:8: warning: unused variable 'a' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:4:13: warning: unused variable 'b' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:4:18: warning: unused variable 'c' [-Wunused-variable]
int a=1, b=2, c=3;
^
source_file.cpp:10:28: warning: variable 'a' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:9: note: initialize the variable 'a' to silence this warning
int a, b, c;
^
= 0
source_file.cpp:10:31: warning: variable 'b' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:12: note: initialize the variable 'b' to silence this warning
int a, b, c;
^
= 0
source_file.cpp:10:34: warning: variable 'c' is uninitialized when used here [-Wuninitialized]
printf ("%d, %d, %d\n", a, b, c);
^
source_file.cpp:9:15: note: initialize the variable 'c' to silence this warning
int a, b, c;
^
= 0
6 warnings generated.
-1688387992, -1688387976, 32
К
tb
tb
tb
tb
К
🎄T
🎄T