- 5
What is the output of the following code?
int a = 11; int b = 12; int c = 40; switch (a) { case 40: System.out.println(b); break; default: System.out.println(c); }
12 odpowiedzi
+ 1
40
+ 1
40
0
40
0
what is the output of this code??
#include <iostream>
using namespace std;
int fun(int a,int b=1,int c=2)
{return(a+b+c);
}
int main()
{cout<<fun(12, ,2);
return 0;
}
0
#include <iostream>
#include <>
int main() {
ofstream fileObj("myfile.txt");
(fileObj.()) {
fileObj << "I work with files";
fileObj.close();
} else {
cout << "Error" << endl;
}
}
0
40
0
11
0
int x = 10;
switch (*x*) {
case 10:
System.out.println("A");
break;
*case* 20:
System.out.println("B");
break;
}
Answers are marked in asterisks **
0
11
- 1
40
- 1
40
- 4
a