#include <iostream>
using namespace std;
int main() { int a = 5, b = 10; bool result = a > 3 || ++b > 10; cout << b; return 0; }
using namespace std;
int main() { int a = 5, b = 10; bool result = a > 3 || ++b > 10; cout << b; return 0; }
Anonymous Quiz
23%
10
49%
11
8%
5
20%
Error.
❤2👍2
#include <iostream>
using namespace std;
int main() { cout << sizeof('a') << " " << sizeof("a"); return 0; }
using namespace std;
int main() { cout << sizeof('a') << " " << sizeof("a"); return 0; }
Anonymous Quiz
44%
1 1
23%
1 2
17%
2 2
17%
4 4
❤2👍1
Anonymous Quiz
52%
6
35%
5
4%
0
10%
Error
👍2
#include <iostream>
using namespace std;
int main() { int arr[3] = {10, 20, 30}; cout << arr[3]; return 0; }
using namespace std;
int main() { int arr[3] = {10, 20, 30}; cout << arr[3]; return 0; }
Anonymous Quiz
25%
30
14%
0
33%
Error
27%
Garbage Value / Undefined Behavior
👍2
#include <iostream>
using namespace std;
int main() { int x = 2; switch(x) { case 1: cout << "One "; case 2: cout << "Two "; case 3: cout << "Three "; default:
using namespace std;
int main() { int x = 2; switch(x) { case 1: cout << "One "; case 2: cout << "Two "; case 3: cout << "Three "; default:
Anonymous Quiz
14%
Two Three Default
51%
Two
21%
Two Three
14%
Three Default
👍4
Anonymous Quiz
13%
11
8%
1
54%
5
25%
Error.
👍3❤1
تذكّروا الغايّة من علمكم هذا، حاولوا كبح السّعي إلى الظهور والاغترار.
وتذكّروا غاية العلم رضا الله ونفعًا للأهل ثُم للأمة.
وتذكّروا غاية العلم رضا الله ونفعًا للأهل ثُم للأمة.
❤6👍2🔥1