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
#include <stdio.h> void main() { int x = 1, z = 3; int y = x << 3; printf(" %d\n", y); }
arithmetic
c
0 Votes
3 Answers
14th Jan 2021, 11:30 AM
yogesh
int num = 2; int x = 3; if(num >= 2) { if(x > 4) { num = 3; } else { num = 4; } } else {x = 1; }
c++
if
1 Vote
11 Answers
26th Nov 2022, 10:38 AM
Sourabh Jaiswal
let x = 7; x++; x - 2; x *= 3; console.log(x);
code
help
question
variables
0 Votes
3 Answers
12th Mar 2023, 6:29 PM
Eren
int x = 1/ 3; cout << x; // Outputs 0 . Why?
c++
operators
3 Votes
9 Answers
19th May 2017, 12:22 AM
Abdulrahim Idris
An efficient way Reverse subscripting an array without for(i= 3; i>=0; i--)
c++
subscript
subscripts
0 Votes
1 Answer
14th Mar 2020, 8:38 PM
Stuart Moss
Please somebody explain me var x= 8; var a = (x++)% 3; document.write(a);
javascript
0 Votes
4 Answers
28th Aug 2021, 9:43 AM
Bikash Jyoti Bhagawati
int x = 3; while(x > 0) { System.out.println(x); x--; } /* Outputs 3 2 1 */
loops
1 Vote
1 Answer
6th Aug 2018, 11:49 AM
Saurabh Negi
What's the difference between int a; int b = 42; a = 10; b = 3;
c++
variables
0 Votes
4 Answers
30th Mar 2017, 2:14 PM
gopal
What is the out put int X = 3; int y= xxy; console . write line (x+"y+")
c#
operators
-1 Vote
4 Answers
10th Aug 2016, 9:34 AM
Rami Salim
public class Carseat { static int state = 3; static int idle=1; static int belted=2; static int unbelted=3; public static vo
switch
0 Votes
6 Answers
20th Oct 2019, 1:03 PM
Sinthani Ngulube
What is the output of this code? int a 3; int b 1, 2; int c 4; b[3] 10; printf("a %d\n", a);
array
c
cpp
3 Votes
2 Answers
17th Feb 2019, 3:50 PM
Lord_fourth
Please type in a code to print to the screen the value of x divided by y. int x = 81; int y = 3; ______<< x ________ y
c++
-3 Votes
7 Answers
26th Jun 2018, 11:20 AM
Md Eyasin Ali
The output of the following code is: x = 3; if (!x) if (x=4) cout << "AAA". else cout << "BBB
c++
-1 Vote
2 Answers
21st Sep 2021, 11:42 AM
Wafaa Elayan
#include <iostream> using namespace std; int main() { int i = 3; i = ++i + i++; cout<<i; return 0; }
c++
0 Votes
3 Answers
8th Aug 2016, 8:49 PM
Michael Murandu
Why is: public class MyClass { public static void main(String[] args ) { int x = 5; x &= 3; System.out.println(x); } } = 1??
java
0 Votes
3 Answers
21st Oct 2019, 11:33 AM
Jibrilla Abdul-Razak
In Java, is there a way to create variable labels using another variable in a for loop:for(int x= 1; x < 3; x++){int y_x = 0;}
begginer
java
loop
0 Votes
3 Answers
21st Dec 2018, 3:06 PM
Marcelo
Int x = 3; x = ++× + x++ + x++; x = ? Can someone please explain this to me. I get 13 , shouldn't it be 14?
c
0 Votes
4 Answers
17th Apr 2020, 8:25 AM
El Cha
نص السؤال How many times "Hi" is get printed? int a = 3; int b = 6; while(a<b) { cout<<"Hi"; a++; b--; }
"hi"
{
}
=
3;
6;
a
a++;
b
b--;
c++
cout<<"hi";
get
how
int
is
many
printed?
times
while(a<b)
السؤال
نص
-5 Votes
2 Answers
3rd Jan 2021, 3:35 PM
Qussai M El-mughrabi
Write the output of the following segments code int X = 7 ; int Y = 3; cout<< X/Y << " and " << X%Y;
be
fast
-3 Votes
2 Answers
24th Dec 2020, 10:54 PM
fadil Yusuf
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
i have error on line 29 please help
0 Votes
Bash
0 Votes
Personal chat
1 Votes
Links of cmy codes
5 Votes
Please help
0 Votes
Python comparison question - HELP!!
0 Votes
post incrementing and decrementing
0 Votes
Link
6 Votes
Why exception is not handled
1 Votes
Ruby
2 Votes