Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Please explain new class() and Class obj = new class();
java
0 Votes
2 Answers
1st Jul 2020, 6:00 PM
Abhishek Tak
a += b is not always a = a + b?
python
0 Votes
2 Answers
7th Oct 2019, 6:34 AM
rez cebov
Code :- a,b,*c = 1,2,(),[] ,print(*c) output was:- ()[]
*c
doubt
identifier
python
rule
variable
0 Votes
2 Answers
4th Aug 2022, 7:16 PM
Abhinay Singh Bhadouriya
Please explain this line ....Vehicle v1 = new Vehicle();
classes
0 Votes
2 Answers
30th Aug 2018, 8:19 AM
AKELLA TARUN SAI LAKSHMI NARAYANA SARMA
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5)
loops
-1 Vote
2 Answers
25th Oct 2020, 1:43 PM
Sada
Can someone explain this int numb = 15; int *numbptr; numbptr = &numb; *numbptr = 20; cout << *numbptr; Output: 20 why changing the value of the pointer chamge the value of the numb variable too?
c++
pointers
0 Votes
5 Answers
25th Aug 2016, 1:02 AM
Carlos Augusto Silva Gurgel
int x = 1/ 3; cout << x; // Outputs 0 . Why?
c++
operators
3 Votes
9 Answers
19th May 2017, 12:22 AM
Abdulrahim Idris
Why negation of 20 is equal to -21 (~20 = -21)?
#cnegation
#negation
2 Votes
3 Answers
3rd Jun 2022, 10:25 AM
jennifer Dsilva
Fill in the blanks to print "Yes" if the list contains 'z': letters = ['a', 'b', 'z'] "z" letters: print("Yes")
lists
python
0 Votes
3 Answers
26th Apr 2020, 10:25 AM
Reshma Ramesh Jadhav
x = ''Y'' puts ''x'' [output: y] But Why?
rb
ruby
simplecoding
0 Votes
2 Answers
24th Mar 2019, 12:46 AM
seth eslami
string[] arr = s.Split(' ').What this mean (' ')
c#
2 Votes
2 Answers
6th Sep 2017, 10:03 AM
Lin N
{ int a = 100; a = 50; cout << a; return 0; } Why the output is 50 as the value of a is 100 & 50
c++
variables
0 Votes
7 Answers
17th Aug 2018, 7:50 AM
Manish kumar
any one knows what are these = ::before and ::after
html
web
1 Vote
2 Answers
7th Mar 2021, 9:25 AM
AmirhosseinYazdani
I dont get how 20//6 = 3. Please help me
numeric-operations
python
1 Vote
4 Answers
26th Jul 2017, 12:33 PM
Gareth Hayers
Código para convertir el valor en un número JS let form = document.getElementById ('form') ; let currency = form. elements.curre
js
0 Votes
2 Answers
29th May 2024, 10:06 PM
Diego Armando Minor Gutiérrez
Scanner myVar = new Scanner(System.in); what it mean?
input
java
0 Votes
2 Answers
22nd Dec 2016, 4:57 PM
Vannak Saing
What is the output of this code? list = [2, 3, 4, 5, 6, 7] for x in list: if(x%2==1 and x>4): print(x) bre
python
2 Votes
18 Answers
14th Sep 2020, 4:21 PM
Anas Emad
var myVariable = 26 % 6; document.write(myVariable); .... why it's output shows "2"??
javascript
operators
7 Votes
2 Answers
1st Aug 2017, 4:01 PM
TONMOY SANTRA
In the last sentence: num = num +1; what does this means?
c++
loops
while
0 Votes
7 Answers
3rd Dec 2016, 11:06 PM
Claudia Yan Marín de Querol
What does this mean?👉 int [ ] a = New int [5]
c#
-1 Vote
4 Answers
14th May 2020, 3:29 AM
Life
L = [] for i in range(1,5,2): if i**2 >= 9: L.append(i) print(L[-1])
beginner
python
0 Votes
5 Answers
3rd Jan 2023, 8:45 PM
Lidwina Harefa
PHP + HTML = complete login / user application?
account
database
form
html
login
php
secure
signup
sql
user
1 Vote
2 Answers
1st Dec 2017, 7:51 AM
Mason
My question is = i can not use behavior="alternate"
html
0 Votes
2 Answers
19th Jul 2018, 5:59 PM
Anas Mansuri
Why is the answer to 3 * '7' = 7
strings
0 Votes
2 Answers
11th Dec 2020, 1:53 PM
Joseph T Cooper
What is the meaning of double(double height = 5'4)
variables
0 Votes
2 Answers
30th Aug 2020, 12:35 AM
AEKON GAMING
Am I right understand, that first x=1 put in arr[1], so we get arr[3+1]=4 and in last arr[0] =2 + arr[1] = 7(4+3) = 9?
javascript
0 Votes
4 Answers
22nd Oct 2020, 10:52 AM
Тимур Завьялов
a = "123" ; a ++; you can explain a++ please?
for
i++
javascript
loop
0 Votes
6 Answers
6th Oct 2016, 9:13 AM
sagir
how can i arrange this String alphabetically order???( String = "Comman"; )
java
string
2 Votes
3 Answers
1st Mar 2022, 6:39 PM
Davinder Kumar
Anyone knows how to print a variable from a string? For exemple: var = 3, string = "var". Then, you have to print it from string
python3
-2 Votes
7 Answers
2nd Mar 2019, 11:51 AM
SlowFast
How many numbers does this code print? i = 5 while True: print(i) i = i - 1 if i <= 2: break
python3
0 Votes
2 Answers
21st Sep 2018, 2:01 AM
Mohamed Ramadan El Geneidy
N=int(input('Enter number')) sum = 0 i=1 while i<=N: sum=sum+i i=i+2 print(sum)
python
0 Votes
1 Answer
4th Oct 2018, 8:24 AM
Nick Fiction
Why can not one use "num++" instead of num = num +1
loops
1 Vote
5 Answers
8th Jun 2019, 12:57 AM
Faisal Alghamdi
Why b= 2 when $a=2; $b = $a++;
php
0 Votes
1 Answer
27th May 2019, 9:04 AM
Krishnadev Thakur
X = [4,3,2,1] minlist = x.sort(x.reverse()) this question from list and arithmetic operators but it couldn't be complile
shashank
0 Votes
1 Answer
25th Jan 2018, 6:38 PM
shashank shekhar
public class Main { public static void main(String[] args) { int i = 012345; System.out.println(i); } }
java
4 Votes
6 Answers
25th Apr 2019, 6:21 AM
Sonu Kumar
What is the output of this code? a, b, c, d, *e, f, g = range(20) print(len(e))
python
tuples
0 Votes
4 Answers
12th Mar 2020, 8:34 AM
Robbin Omobamidele
#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
#include <iostream> using namespace std; void test(int*, int*); int main() { int a = 5, b = 5; cout << "Before changing:" <
c++
dev
-1 Vote
2 Answers
5th Jul 2022, 1:34 PM
Kathleen Joy Uy
Why double = 5/2 is 2.0 in java? Why it is not 2.5?
double
int
java
0 Votes
5 Answers
12th Sep 2019, 11:17 PM
Abman
x = 4 if x == 5: print("Yes") else: print("No")
else-statements
python
-1 Vote
4 Answers
22nd Dec 2016, 12:38 PM
SealCLi
When a = 3 and b=2; we have a++ =4 , b= a ++ = 4, and now ++b should be 5 or 4 ?
c++
i
0 Votes
6 Answers
25th Mar 2017, 2:11 PM
Mohammed Merbout
В одном из уроков был пример int x = 10 ; double = 20 ; Оба числа целые ,причем сдесь double ?
doubl
int
1 Vote
2 Answers
21st Jun 2018, 10:07 AM
Kisliy
class MyClass { public static void main(String[ ] args) { boolean b = true ; for (int i = 0;i<10;i++) if (b=!b)
expain
0 Votes
2 Answers
3rd Aug 2018, 1:19 PM
Ghritika Sharma
how a = b works in case of list and strings
code
python3
1 Vote
3 Answers
16th May 2020, 8:34 AM
Bhavuk Sharma
m = [ [1, 2, 3], [4, 5, 6] ] print(m[1][2])
python
2 Votes
2 Answers
16th Aug 2020, 12:36 PM
vasista bg
Why the strrev[i] = '\0' null in the end of the code?
arrays,
c,
strings
0 Votes
4 Answers
1st Feb 2020, 4:40 PM
Veli-Matti
What is the output of this code? x = 9 x%= 2 x += 3 print(x)
sololearn
2 Votes
4 Answers
25th Apr 2022, 2:50 PM
Chabolu Dharaneesvar
Char *message = "this is a message"; what is mean by this in c language???
c
language
4 Votes
7 Answers
16th Jun 2019, 1:08 PM
Gaurav Rawat
Is this java or javaScript x = getSum(16,13); //x is 29 y =++x;
java
javascript
4 Votes
7 Answers
11th Mar 2017, 7:41 AM
Ahmed Ozmaan
double x = 5/2; vs double y =5.0/2.0; in C#
c#
0 Votes
2 Answers
15th Jul 2020, 10:51 PM
Mr Wolfy
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
17
18
19
...
38
Next >
Hot today
PHP Tutorial Idea
1 Votes
Use Python for string manipulation and sorting.
1 Votes
Gimme some advice
0 Votes
Doubt in C
1 Votes
How to open the test cases on sololearn I tried so many times with the correct code
0 Votes
Php?
0 Votes
About android&apple compatibility
1 Votes
can anybody tell me a trick to earn followers
0 Votes
Why am I not able to message anyone?
0 Votes
how to create my own html page
0 Votes