New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
int x=3; switch(x){case 1: x+=x; case 2: x+=x; case 5: x+=x; default : x+=x}; cout<<x; output?
cpp
output
0 Votes
6 Answers
25th Aug 2020, 7:05 AM
Harsh Kant
The statement x*=3; is equal to 1) X=3*; 2) x=3; 3) x= x *3; 4) x= x+3;
java
0 Votes
3 Answers
19th Aug 2020, 9:21 AM
Darpan Kushwaha
Утро доброе!
int
x=3;
1 Vote
1 Answer
17th Apr 2019, 3:41 AM
Михаил Андрющенко
#include<iostream> using namespace std; int main(){ int x=3; int y=2; x++; y*=x++ - ++y * ++x ;
operators
2 Votes
3 Answers
23rd Feb 2018, 12:01 AM
stop.ol
Int x=3; switch(x) { case1: { x+=x;} case3: {x+=x;} case5:{x+=x;} default: {x+=5;} } cout x
shridhar
2 Votes
12 Answers
6th Feb 2018, 7:19 PM
Shridhar Rai
int main() { int x=3; cout<<(x<5) +1; return 0; }
cpp
0 Votes
2 Answers
1st Jul 2017, 2:53 AM
Kushagra Agarwal
var x=2, obj={ x:1, change:function(){ var x=3; } } obj.change(); alert(obj.x);
change
2 Votes
5 Answers
24th Jun 2017, 4:17 PM
islam moheb
why this output 4 not 5; #include<iostream> using namespace std; class A{ public: int x=3; A(){x++;} ~A(){x++;} }; int main() { A obj; cout<<obj.x; }
c++
0 Votes
2 Answers
31st Aug 2016, 7:23 PM
Lekhraj Singh
why come this output ==10? int x=3; x= ++x + ++x; cout<<x;
c++
4 Votes
4 Answers
13th Jun 2016, 1:44 PM
Lekhraj Singh
can anyone explain this output? int x=3; x=++x + x++; cout<<x; //output=9
c++
4 Votes
4 Answers
13th Jun 2016, 1:14 PM
Lekhraj Singh
why this output? int x=3; x=++x + ++x + ++x; cout<<x; //output==16 ?
c++
0 Votes
6 Answers
13th Jun 2016, 12:41 PM
Lekhraj Singh
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
I need help please!!!
3 Votes
[Solved] Solution of code coach [Hofstadter's Q-Sequence]
1 Votes
Can someone please help with python code?
0 Votes
What is the meaning of this tag
1 Votes
SELECT students.id, students.firstname, students.lastname, teachers.lastname AS teacher FROM students, teachers WHERE students.t
1 Votes
Is there a builtin way to reference a while loop condition without restating it?
0 Votes
I do understand a bit of code but can't make anything out of it
1 Votes
Why is the result always 0?
1 Votes
Capstone Project
0 Votes
Building a Cipher
1 Votes