Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What is the purpose of return 0 at the end?
c++
variables
0 Votes
5 Answers
12th Jun 2017, 9:42 AM
Lek0
If a button is pressed does it return a value?
button
javascript
value
2 Votes
1 Answer
16th Apr 2018, 12:11 AM
Carlos E.O.V.
I want to return string. Affect it to variable paragraph. Thanks you.
display
function.
string
with
-1 Vote
1 Answer
10th Jun 2021, 5:45 AM
Malick Diagne
filling the blanks to define a function that takes two numbers as arguments and returns the smaller one min (x,y) if x<=y return
help
-2 Votes
12 Answers
9th Dec 2018, 4:58 PM
Archit Rana
Can you override a private or static method in Java?
return
2 Votes
2 Answers
17th Apr 2017, 2:45 PM
Adarsh Roshan
Make a program using def function which clearly explains the return
return
0 Votes
2 Answers
2nd Jun 2020, 7:35 AM
Aditya Salabh
if is_open return false, do I have to close the file?
c++
close
files
6 Votes
2 Answers
24th Apr 2017, 11:59 AM
Daniele Gaito
what if we put return 1 in main function eg int main () { • • • • • • • • return 1; }
c++
1 Vote
6 Answers
21st Jun 2016, 8:53 AM
Tushar Chetan
Can we create a Virtual function with tribool return type?
boost::tribool
c++
0 Votes
2 Answers
11th Jan 2021, 4:55 PM
Vipin Chauhan
Why output of this code is 10? int main() { int a=4,b; b=a+ ++a; cout<<b; return 0; }
cpp
5 Votes
30 Answers
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
Why is my Function returning 1 when I expected it to return 4?
functions
javascript
0 Votes
7 Answers
8th Mar 2021, 8:49 PM
Moshe Schnitzler
Why does count(*) and count(1) return different results ?
sql
2 Votes
2 Answers
19th Jul 2016, 8:29 AM
Ashutosh Singh
Why does this return an error? Functions, randomization, innerHTML
function
innerhtml
javascript
math
randomization
0 Votes
2 Answers
21st Jun 2019, 3:21 AM
YoBoi
How to return indices of two numbers that sum of these numbers equal to 9?
array
index
sum
0 Votes
10 Answers
22nd Jan 2020, 9:56 AM
Andrey Shintar
Why this keyword return undefined and doesn't work for changing object value
javascript
this
3 Votes
2 Answers
1st Aug 2022, 12:01 PM
EsaKurniawan
String compare method, what is the return value telling us?
.compare
c++
string
1 Vote
3 Answers
30th Mar 2019, 9:14 PM
Nathan Stanley
Is it necessary to use return 0 in c++ programs?
c++
2 Votes
3 Answers
18th Mar 2017, 5:07 PM
Shiva
How many return statements can be written in a function?
functions
python
1 Vote
4 Answers
26th Jul 2016, 4:28 PM
supraja
Why " return "statement is not used in LINE 7
python
return
1 Vote
2 Answers
25th Mar 2018, 12:20 PM
Sanjay Leo
Program that can take any plane figure and return the area.
c
c++
java
python
1 Vote
5 Answers
7th Mar 2018, 7:23 AM
Nkiruka
How do I use python to remove duplicates in a string, and return it's number?
python
strings
6 Votes
7 Answers
27th Feb 2017, 8:32 PM
Mcdavid
What does return do in Python when it's typed alone?
python
return
0 Votes
3 Answers
12th Feb 2019, 3:39 PM
Kashif Nawaz
How can I return a password into my add-on in JavaScript?
add-on
extension
firefox
javascript
password
2 Votes
1 Answer
9th May 2019, 12:43 PM
Kim Roggenbuck
Difference between getch() and return 0 in c
c
0 Votes
1 Answer
2nd Dec 2018, 6:28 AM
faizul rahman
Java: Why isn't my return working? Please help.
beginner
help
java
main
method
return
1 Vote
1 Answer
13th Aug 2018, 12:37 PM
Fleet
#include<stdio.h> int main() { int i=2; printf("%d, %d\n", ++i,++i); return 0; }
c
-1 Vote
2 Answers
7th Sep 2019, 5:16 PM
Karan Dubey
Returning string from function in c/c++[solved]
c
c++
return
string
2 Votes
28 Answers
9th Oct 2020, 10:25 PM
nicolas turek
what if there was no concept of return type? xD
c
c++
curious
fun
java
just
2 Votes
3 Answers
13th Mar 2017, 8:59 AM
Pankaj Vaghela
What's the difference between return and print statement in python?
beginner
python
0 Votes
3 Answers
22nd Apr 2020, 12:18 PM
swaggy tarret
kindly explain.When n<=2 ,the answer is 5 ,but when n<=1,answer is 3. While n=n%5 so 9%5= 4. While 4 is bigger than both 1 and 2
def
return
1 Vote
7 Answers
25th Jun 2022, 11:42 AM
Tafseer Ahmad
Help me to make it true.never I could to work with return statment.
help
1 Vote
10 Answers
5th Mar 2018, 7:22 PM
Sina
where do i put the return statement in the method
java
0 Votes
2 Answers
5th Apr 2022, 9:33 PM
Raja Velu
C function to return the multiplication and sum of two variables
c
code
1 Vote
3 Answers
20th Oct 2018, 9:26 AM
Aisha Ali
Why this code return negative roots if i input a, b,c as 1 5 6
help
please
4 Votes
7 Answers
28th Mar 2020, 5:30 AM
Wade
Why does directly calling an index with pop work but with no arguments return none?
append
lists,
pop
python3
1 Vote
11 Answers
23rd Jan 2020, 7:22 PM
ren[paused]
How to return the highest integer value from a list in python
lists
python
2 Votes
3 Answers
24th Aug 2022, 4:22 PM
DarkPhoenix15
Can anyone explain me Why this code give Output 80? and How does this return function works?
functions
python3
return
2 Votes
11 Answers
10th Jul 2021, 6:54 AM
Moon
Elaborate the difference between getch(); and return 0; .....????
cpp
1 Vote
2 Answers
17th Dec 2016, 5:32 PM
Taneem Jan
function abc(a){ return(function(y){ return y+1; }) (++a)+a; } alert(abc(2));
function
return
0 Votes
2 Answers
21st Jun 2017, 9:54 PM
islam moheb
How to return highest character in string? C++
c++
0 Votes
2 Answers
14th Mar 2017, 2:45 PM
Daphnyzyb Pelaez
Is return statement compulsory in int main() function?
#function
#return
c++
0 Votes
2 Answers
24th May 2017, 6:41 AM
Mystique
What happens to the return statements of yo()
decorators
python
python3
0 Votes
1 Answer
3rd May 2021, 12:50 PM
Suryansh sharma
What's the difference between ECHO and RETURN ?
php
return
0 Votes
2 Answers
18th Aug 2016, 7:56 PM
Francisco Astudillo Antinao
Can we declare main as void and not use return statement
c++
0 Votes
6 Answers
14th Nov 2016, 11:00 AM
Shreyash Mundhra
I want to do if else and return . Thanks you.
else.
if
0 Votes
3 Answers
17th Sep 2020, 12:38 PM
Malick Diagne
Help me, please! Why my code always return 0 :(
html
javascript
mysql
php
sql
2 Votes
3 Answers
13th Sep 2017, 8:21 AM
Lặng
Why do we put a return zero command at the end in c++?
c++
0 Votes
6 Answers
20th Jan 2020, 3:06 PM
Naval Surange
How to return each element in list in a seperate new line
python3
0 Votes
3 Answers
6th Dec 2021, 1:49 PM
D.VANITHA
I want return the first letter and the total number of bytes together
python
0 Votes
1 Answer
19th Oct 2020, 2:07 AM
ASHRAFUL HAQUE SULAIMAN
[solved]Does any code after a return statement in a function have any effect?
javascript
js
web
0 Votes
6 Answers
21st Mar 2021, 6:27 PM
Einstein Shilly shally
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
20
21
22
...
45
Next >
Hot today
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for “Intergalactic Champion”
3 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Python intermediate help with dictionaries
0 Votes
Advertising in Sololearn
1 Votes
Marquee
1 Votes
Fill in the blank to declare a static variable.
0 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
RUST'S FUTURE
1 Votes
Any Advise?
1 Votes