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
i=0; i++*++i=?
java
2 Votes
3 Answers
12th Nov 2016, 12:24 PM
ANAND ALABAL
var arr=[1,4,6,4,2]; for(var i=0; i<3; i++){ arr[i]=arr[i]+arr[i+2]; } document.write(arr[3]);
javascript
js
script
3 Votes
4 Answers
10th Apr 2023, 11:30 AM
Manshu
can anyone answer this with correct explanation int i=0; printf("%d%d%d%d",--i, ++i, i--, i++);
c++
operators
0 Votes
12 Answers
15th Aug 2016, 10:50 AM
fb@ankit.singhal.357
#include<iostream.h> int main() { for(int i=0; i<10; i++) if(i&2) cout<<i; }
<?>
0 Votes
2 Answers
9th Dec 2019, 5:43 AM
Mahmoud Taher
#include <stdio.h> int main() { int i=0; for(i=1;i<=5;i++); printf("%d",i); return 0; }
answer
any
can
code
give
of
this
1 Vote
1 Answer
30th Dec 2020, 3:59 AM
Ankit Kumar
int i=0; cout<<++i + ++i + ++i<<endl; why output of this code is 7?
c++
increment
operator-precedence
4 Votes
7 Answers
18th Nov 2016, 7:06 AM
tutalia
include <stdio.h> int main() { char i=0; switch(i) { case '0': printf ("c"); break;
hh
0 Votes
9 Answers
7th Jan 2021, 8:50 AM
Ankit Kumar
#include<stdio.h> #include<string.h> void main() { char *str="His"; int i=0; for(i=0;i<=strlen(str);i++) printf("%s",str++); }
c
c++
challenge
codding
code
html
jquery
require
sololearn
subqueries
1 Vote
3 Answers
29th Apr 2020, 3:59 AM
Rihaj Mujawar
int n=10; int i=0; while(i<3) { if(i==3) { continue;} n=n*i; } System.out.println(n);
java
0 Votes
2 Answers
7th Oct 2020, 5:39 PM
Ajit Patel
#include <stdio.h> int main() { int j=0; for(int i=0; i<100; i++) { j=j++; } printf("%d", j); } Output = 0
c
5 Votes
9 Answers
7th Dec 2018, 4:37 PM
👑 Ak-king 👑
why is the answer to this question 12? k=6; for(var i=0; i<k; i++){k+= 0.5; } document.write(i);
12?
answer
is
why
2 Votes
4 Answers
17th Nov 2020, 5:10 PM
Francis Woli
Solution for Python while else for problem?
<3
i=0;
while
0 Votes
2 Answers
26th Nov 2020, 11:15 PM
Alex[]
int main () { int a[3] = {2,7,3}; for (int i=0; i<3; i++){ a[i]-=i; } cout<<a[i]; }
arrays
c++
1 Vote
6 Answers
3rd Aug 2016, 4:43 PM
Hakatek
#include <iostream> using namespace std; int main() { int ages[5]; for (int i=0; i<5 ; ++i) { int min=ages[0
c++
1 Vote
5 Answers
10th Feb 2021, 5:43 PM
Med Iheb Harbaoui
#include <iostream> using namespace std; int main() { int i=0; for(;i<5;i+=3){ i=i*i; }cout<<i; return 0; }
cpp_output
0 Votes
1 Answer
21st Oct 2017, 6:00 AM
Sharad Suryavanshi
what is the output of this code? array list<Integer>list=new Array list<Integer>(); for(into i=0; i<6; i++){ list.add(i); } int x=0; Iterator<Integer>it=list.iterator(); while(it.hasNext()){ x+=it.next(); } System.out.println(x);
java
0 Votes
2 Answers
26th Mar 2017, 11:42 AM
Teja Swini
#include using std::cout; int main() { int i=0; cout << (i=0? 1:2? 3:4); return 0; }
c
-3 Votes
3 Answers
14th May 2020, 11:31 PM
Md Saiful Islam
for(;;) { int i=0; if(i==1){System.out.println(i); break;} ++i;} Will this code run for infinite times? If yes then how?
for
loops
1 Vote
1 Answer
13th Aug 2017, 7:11 AM
Paul Gaikwad
what is the output of this code? template<class t> void f(t){ static int I=0; cout<<I++; } int main (){ f(1); f(1.0); f(1); }
c++
2 Votes
5 Answers
26th Jul 2016, 3:05 PM
Darsh Shah
int m, n; cin>>m>>n; double ** T = new double*[n]; for(int i=0; i<m; i++){ T[i] = new double[m]; }
matrix
0 Votes
1 Answer
4th Nov 2016, 11:49 PM
mohammad hatami
what is the output of this code? template<class t> void f(t){ static int I=0; cout<<I++; } int main (){ f(1); f(1.0); f(1); }
c++
1 Vote
3 Answers
24th Jul 2016, 5:22 PM
Darsh Shah
i dont get the code on the end what should make the pet giving both Meow and Woof especially for (int i=0; i<2; i++) {
polymorphism
0 Votes
2 Answers
14th Jan 2019, 9:59 PM
Nuh Cetin
why it is not show any output when run this program #include<iostream> using namespace std; int main(){ for(;;){ int i=0; if(i==1){ cout<<i; break; } ++i; }
c++
1 Vote
2 Answers
1st Sep 2016, 9:01 AM
Lekhraj Singh
why it is not show any output when run this program #include<iostream> using namespace std; int main(){ for(;;){ int i=0; if(i==1){ cout<<i; break; } ++i; }}
c++
0 Votes
2 Answers
2nd Sep 2016, 6:28 PM
Lekhraj Singh
How is the result 17 please i need good explanation on this, anybody please? What is the output of this code? Int result=0; for(int i=0; i<5; i++){ if (i==3){ result +=10; } else { result +=i; } } System.out.println(result);
java
4 Votes
8 Answers
20th Feb 2017, 2:10 PM
keita Abdullah
Int x=0; For (int i=0; i <8; i++) { x=i*i; } what will be the output ; and what will be the value of( i) after the for loop
c++
sololearn
-1 Vote
2 Answers
9th Feb 2017, 7:20 PM
Sultan
public class Program { public static void main(String[] args) { int result = 0; for (int i=0; i<5; i++) { if (i==3) { result += 10; } else { result += i; } } System.out.println(result); } } The result is 17. But how? I want to understand. please help.
java
0 Votes
3 Answers
5th Jul 2016, 5:04 PM
Beniamin Firtala
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
[SOLVED] How to create animation in Python?
2 Votes
[Clearified] 0 === -0 and 0 == -0
4 Votes
What next?
0 Votes
How to stop pop up menu from qt table horizontal header
0 Votes
Popsicle program
1 Votes
How to learn Web Development?
0 Votes
Why 'null >= 0' is TRUE?
3 Votes
R programming
2 Votes
Which programming language is most important for learning hacking or cybersecurity?
0 Votes
Can you helpe me
0 Votes