Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
[JS] Why does this function always return 4?
function-arguments
functions
javascript
return
4 Votes
4 Answers
7th Feb 2017, 11:05 PM
Pete Wright
Function with no return with parameters and default Arguments
c++
function-arguments
functions
1 Vote
6 Answers
28th Nov 2019, 2:08 PM
Dipanjan Basu
What's the deal with return 0; ?
return
0 Votes
2 Answers
14th Nov 2020, 10:24 AM
amirreza moosavi
what is the output of def func(x): res = 0 for i in range(x): res += i return res print(func(4))?
python
-11 Votes
17 Answers
7th Jun 2018, 2:21 PM
Saurav nalla
What will occure if we don't use return keyword in the method?
c#
c++
java
2 Votes
14 Answers
5th Oct 2017, 5:30 AM
Super Programmer
Methods & return output question
methods
output
return
0 Votes
1 Answer
19th Feb 2018, 6:30 AM
divyam sureka
function - Return vs echo
php
1 Vote
1 Answer
5th Feb 2018, 5:53 PM
Rachid Antunes
Explain return type in java
java
1 Vote
1 Answer
29th Sep 2017, 1:36 AM
Abinesh N
[ANSWERED] return call in decoration
functions
python
return
0 Votes
1 Answer
25th Sep 2017, 3:36 PM
Alex Snaidars
difference between return and getch
c++
return
0 Votes
1 Answer
29th Jul 2016, 5:45 PM
S_a
Full concept of return(0), return
k
0 Votes
1 Answer
18th Aug 2017, 1:09 PM
pandian
Simplify return array of chars
arrays
char
methods
1 Vote
1 Answer
7th Sep 2016, 6:37 PM
Denis Glotov
Why dont these equations return the same value?
java
0 Votes
5 Answers
29th Aug 2021, 10:26 AM
Sheldon 10110
In JavaScript how do I return a value
a
help
little
need
0 Votes
7 Answers
10th Jul 2017, 2:32 PM
Melvin Toran
Why wont this code return results for the second query?
sql
3 Votes
3 Answers
16th Jan 2019, 1:59 PM
Kevin Hoelck
text =input() word =input() def search(text,word): if word in text: return ("word found") else: return ("word not found") prin
python
-1 Vote
3 Answers
29th Oct 2021, 10:00 AM
Dennis Onoja
what does return means in c++
c++
1 Vote
2 Answers
1st Jan 2017, 12:07 PM
Abhishek Sikarwar
What is the return type of scanf() and printf() in C?
c
data-type
data-types
printf
return
scanf
12 Votes
7 Answers
12th Mar 2018, 5:43 PM
Amit Haldiya
Do Constructors have a return value ??
oop
0 Votes
2 Answers
3rd Jan 2020, 10:58 AM
Andrew Sameh
What happens when you don't return anything?
java
methods
1 Vote
4 Answers
6th Jul 2016, 12:44 PM
Stanley
Does math.random() actually return exact 0 or 1 ever?
java
3 Votes
5 Answers
8th May 2018, 9:38 AM
Sayantan Pal
Pls wat is return, when is it used, and y can a single coding ve many return. Some return 20, return 0, return ster... Need help
c++
variables
0 Votes
4 Answers
14th Dec 2016, 4:18 PM
Michael Dogbey
Why we write as 'return 0' at the end of the code? Even though I write as return 1 or return 100 or return 1000 it gets executed
c++
2 Votes
4 Answers
13th Oct 2017, 4:18 PM
Manikanta
def fb(n): if n==0: return 0 if n==1: return 1 else: return(fb(n-1)+fb(n-2)) print
(a)
8
1 Vote
1 Answer
30th Mar 2017, 4:21 PM
Samuel Akosa
Wat is the defrent between (1. Return by value/ 2. Return by refrence /3. Return by constant refrence ) in c++
c++
constant
function
refrence
return
types
value
1 Vote
1 Answer
24th Feb 2017, 10:52 AM
Muhammad Xoshnaw
What is exit_success in return exit_success?
c++
1 Vote
2 Answers
5th Feb 2018, 7:59 AM
Nguyễn Như Cương
return value and passing value difference?
c++
1 Vote
2 Answers
11th Jul 2017, 1:25 AM
Benson Tan
What if we do not include return 0;
return
0 Votes
4 Answers
26th Aug 2019, 6:11 AM
chaitanya kumar
What if i had written return 2?
return
1 Vote
2 Answers
28th May 2019, 9:48 PM
Aditi Bhattacharya
Can a function return more than one value???
c++
functions
1 Vote
6 Answers
16th Dec 2016, 6:29 PM
sujata pradhan
Why in this app return 0 is used
c++
2 Votes
5 Answers
18th Oct 2016, 10:58 AM
rile
Please can someone explain the return statement in function like am 5?
python
0 Votes
14 Answers
29th Mar 2022, 1:09 PM
Okundaye Jesse Eghosasere
What is the difference of Return and Print?
print
python
python3
return
3 Votes
2 Answers
28th Sep 2018, 7:00 PM
DrChicken24
What is the use of return 0
return
1 Vote
2 Answers
24th Jan 2019, 6:22 PM
Ashwin Gaikwad
#include<stdio.h> int main(){ for(printf("1");!printf("0");printf("2")) printf("Sachin"); return 0;
c
0 Votes
2 Answers
25th Dec 2016, 7:42 AM
Arpitha G R
Why void does not return any function
c++
2 Votes
3 Answers
16th Nov 2016, 12:16 PM
Samhita Joshi
Experimenting with JS return statement... help [SOLVED]
attempt
function
js
math.floor
math.random
random
return
web
1 Vote
2 Answers
7th Aug 2020, 8:31 AM
Ginfio
Why does this doesn't return random number?
rand
1 Vote
2 Answers
13th Jun 2018, 7:20 AM
Neel Rathod
Параграф посвященный функции return написан непонятно.
functions
return
1 Vote
1 Answer
17th Oct 2018, 9:27 AM
Nikita Nikitskiy
What is return mean in Python?
beginner
help
plz
python
return
value
1 Vote
2 Answers
22nd Jul 2017, 11:33 PM
Abdallah Gamal
чем отличается return от print? в python
print
python
return
0 Votes
3 Answers
2nd May 2021, 2:50 PM
Berith
What is the benefit of return 0 ?.
0
return
1 Vote
3 Answers
10th Jun 2019, 9:44 AM
The unknown 321
function greet($name) { return "Welcome ". $ ; } greet('Robert');
fungcion
php
0 Votes
7 Answers
4th Feb 2019, 7:54 AM
Hermanto
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
c++
-2 Votes
17 Answers
2nd Oct 2019, 7:54 AM
Tushit Sharma 24 CODER
What does return do in java?
java
methods
return
0 Votes
2 Answers
3rd Dec 2017, 7:28 PM
Unidentified
Why does it not return 1?
c++
code
1 Vote
2 Answers
17th Jan 2018, 6:50 PM
Lewinsky
Don't constructors require any return types?
c#
constructors
1 Vote
2 Answers
4th Jan 2017, 8:18 AM
박경록
How to return myfunction in python3.?
python3
2 Votes
1 Answer
16th Nov 2017, 2:17 PM
Бондаренко Алексей Максимович
Why do we have to return always 0 in case the return type of the main() is int. What will happen if we return some integer other than 0?
c++
functions
1 Vote
5 Answers
16th Mar 2016, 9:29 PM
Rahul Singh
What is the use of return o
c++
cout
0 Votes
2 Answers
11th Jun 2019, 11:47 AM
John J Mumba
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
12
13
14
...
45
Next >
Hot today
What's wrong with this code ? ( Beginner)
3 Votes
Pig Latin
0 Votes
Please rate my code from 1 to 10
2 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
Currently learning C++, I’m getting into socket programming with C++
0 Votes
Is there any new bug in the projects reply sections?
1 Votes
Uuu
2 Votes
I’m new someone can help me
0 Votes
Recursion doubt
2 Votes