What is the output of the following code? | SoloLearn: Learn to code for FREE!

-3

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); }

1/9/2017 8:15:21 AM

Mohammed Rishad

9 Answers

New Answer

+2

40

0

0

0

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

0

0