Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
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
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 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
int main() { int x=3; cout<<(x<5) +1; return 0; }
cpp
0 Votes
2 Answers
1st Jul 2017, 2:53 AM
Kushagra Agarwal
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
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
x=3;
1 Vote
1 Answer
17th Apr 2019, 3:41 AM
Михаил Андрющенко
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
#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
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
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
HTML
1 Votes
Functions in python
0 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
1 Votes
I need advice
0 Votes
Answer please
0 Votes
I need advice
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Why this code fails even without data race
0 Votes
Paint costs
1 Votes