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 diference between return and puts?? Does it do the same thing?
puts
return
ruby
2 Votes
2 Answers
9th Nov 2016, 11:06 AM
Nayomal
What will happen if I don't put return 0 in my program
c++
0 Votes
2 Answers
19th Jul 2016, 1:14 AM
harshith
Why does the join method in python return keys only when used on a dict?
methods
python
str.join()
string
2 Votes
2 Answers
4th Aug 2020, 10:24 AM
Divine Darkey
How to split string and return the sum of every characters integer to the 31 to the power of i
adt
hash
hashcode
hashmap
map
table
3 Votes
5 Answers
9th Sep 2019, 12:46 PM
Zhenis Otarbay
I am getting error of return statement missing ..Can anyone help ??? It's a code of anagrams
mail
2 Votes
3 Answers
25th Jun 2021, 3:46 PM
Minishreddy Vaidhyula
Even without using return 0 I was getting the right output so what is it's use then?
c++
5 Votes
2 Answers
2nd Mar 2017, 5:18 AM
Lol
find the error and type correct one
predefined-variables
return
1 Vote
1 Answer
22nd Jul 2019, 7:50 AM
Sai Rajveer Kondeti
Can we use multiple time to return multiple value of different variable in one function
c++
return
1 Vote
2 Answers
20th Feb 2019, 11:37 AM
Dash
#include <iostream> using namespace std; int main() { cout<<12+"good morning\n"-24; return 0; }
c++
1 Vote
1 Answer
4th May 2017, 6:20 PM
siddiqui junaid
#include <stdio.h> int main() { int i=3; if(!i) i++; i++; if(i==3) i+=2; i+=2; printf("%d",i); return 0; }
if
0 Votes
4 Answers
21st Aug 2020, 9:15 AM
Rohit Ahuja
def func(x): res = 0 for i in range(x): res += i return res print(func(7))
function-arguments
modules
0 Votes
2 Answers
12th Aug 2020, 7:46 AM
Shubham Kumar
what is the output of def square(x): return x * x def test(func, x) : print(func(x)) test( square , 42).
functions
python
-1 Vote
2 Answers
7th Jan 2018, 1:53 AM
Aarnav
Check the code in the description for a return issue. What's the difference between printing and returning a value ?
or
print
return
0 Votes
4 Answers
1st Aug 2019, 5:32 PM
The unknown 321
#include <iostream> int main() { int i=8,j=3,x; x=i++; j=++i; cout<<x; cout<<--j<<j--<<++j; return 0;}
c++
output
1 Vote
2 Answers
7th Feb 2017, 1:02 PM
Vaaru
How we can return multidimensional array as a result of the function?
arrays
c++
functions
0 Votes
2 Answers
20th Sep 2017, 7:31 AM
botenik
Help with return issue! "incompatible possible lossy conversion! can't find the issue!
conversion
doubles
help
java
lossy
0 Votes
2 Answers
24th Sep 2017, 8:58 PM
Damiano Marsili
Why do we type return 0 at the end of a program
c++
0 Votes
2 Answers
10th Apr 2017, 4:18 AM
lohit jena
Why'd we can't make string as the return type's of a function in the header file?
classes
header
1 Vote
3 Answers
26th Mar 2018, 6:51 AM
Riannanda Faza
# include <iostream.h> # include <std.h> int main() { cout<<"hello world"; return 0; }
c++
2 Votes
2 Answers
30th Jan 2018, 3:26 PM
Sakshi
Program for multiple of at least two digits, n, return 1 if n is multiple of at least two digits or return 0,o/p prime number c
c
-2 Votes
1 Answer
13th Aug 2017, 11:42 AM
kiruthikaa
Write a function in python to take decimal number as arguments and return it's corresponding hexadecimal number
python
1 Vote
2 Answers
14th Oct 2020, 4:35 AM
arka
'Single Entry Single Exit' - Valid Or Nonsense?
entry
exit
functions
return
sese
single
11 Votes
14 Answers
4th May 2020, 10:05 PM
HonFu
Write a c program that will ask you to enter the year your were born and return your current age
int
-2 Votes
11 Answers
15th Feb 2018, 7:56 AM
ian
why does the function memorize the last return result when I call the same function again?
functions
python3
return
1 Vote
2 Answers
6th Apr 2019, 2:17 PM
Dihambo Dior
def add(x, y): return x + y def do_twice(func, x, y): return func(func(x, y), func(x, y)) a = 5 b = 10 print(do_twice(add, a, b)) anybody can explain what is the relevance of func in this code?
functions
python
1 Vote
4 Answers
21st Aug 2016, 4:57 AM
anju
write a function which return min max and average of all numbers when the list of integers is given as input.
python3
0 Votes
7 Answers
24th Mar 2022, 6:52 PM
Akash Gupta
Why bother with the return of a variable that never gets document.write?
functions
javascript
0 Votes
2 Answers
9th Oct 2015, 5:32 AM
aaron urban
Whats wrong with void return type function for creating a main function
c++
0 Votes
2 Answers
9th Apr 2017, 8:35 AM
Mohd Thanveer Mk
Function overloading that differs in return type not necessarily throws an error?
functions
0 Votes
2 Answers
9th Mar 2018, 6:22 AM
Sreenidhi
How to convert a array of integer into string and I want to return it in c program
c
0 Votes
4 Answers
8th Sep 2020, 4:01 PM
Mohan Raj Murugan
Please can explain the return function of python. I am in level 3 just now understanding the language
help
please
1 Vote
4 Answers
1st Sep 2020, 6:05 PM
Kemausuor Winambe Tetteh-Kumah
What is the error here?
c
return
0 Votes
1 Answer
20th Jan 2020, 5:59 AM
Y AD Ù
please I look for a good C book
c
functions
if-statements
loops
return
while
1 Vote
19 Answers
10th May 2020, 6:19 AM
Yohonon Makunin
How to return code to top line if user makes input less than 40. I tried like this but it doesn't work. Thank you all in advance
loop
python3
return
1 Vote
4 Answers
28th Aug 2022, 11:33 PM
Srki
If i want to use return here!! What would be the code for it
answerplease
please
quick
0 Votes
2 Answers
15th May 2020, 8:09 AM
Lucky Nayak
why this code doesn't return the right output for number greater than 9 ?
javascript
1 Vote
1 Answer
23rd Dec 2021, 3:57 PM
Wael Kamal
Why in some cases we need to return reference from assignment operator overloading function?
c++
operator-overloading
return
1 Vote
1 Answer
22nd Dec 2019, 7:43 AM
Amit chavare
sum(5, 6); function sum($num1, $num2) { $sum = $num1 + $num2; return $sum; }
functions
php
1 Vote
2 Answers
2nd Sep 2016, 5:46 AM
Mark Julius M. Yebra
How does the functions in python works when we call them that is please explain me the following working of generating outputs
functions
python
return
3 Votes
3 Answers
26th May 2020, 12:00 PM
Vijay Gunwant
I called button to display event in document.querySelector. but return null. Thanks you.
button
called
event
0 Votes
1 Answer
24th Jul 2021, 4:56 PM
Malick Diagne
Can anyone tell me that, In java how to return int array with square brackets like for python we use list then how to do java
java
1 Vote
9 Answers
13th Feb 2022, 1:58 PM
Onkar Ambuse
Defining functions
functions
python3
return
2 Votes
4 Answers
28th Sep 2017, 2:52 AM
${Levi}
What is the diffrence between using "return 0" and "return 1"
c++
return
0 Votes
3 Answers
9th Jul 2016, 2:44 PM
Vaasu Bhatnagar
For what purpose we are using return statement?? Help me to understand clearly and easily
c#
return
0 Votes
3 Answers
2nd Jul 2016, 6:46 AM
Mariyadinesh
Why can't I change backgroundcolor and return to the normal color with input checkbox using Js, I'm confused guys please help
css
html
javascript
3 Votes
3 Answers
17th Jun 2020, 7:11 PM
Abat
Why 'return' is not working where 'print' is working properly?
print
python
return
3 Votes
2 Answers
24th Sep 2020, 4:40 AM
Md. Faheem Hossain
How can you randomly return an element from a list? "rand()" is uniformly distributed from 0to 1. "list" is a list of elements.*
c++
programming
python
0 Votes
14 Answers
10th Nov 2018, 7:09 PM
Deep
I don't understand why I can't make a sum of two functions that returns an int value. For example: def N1(): x=3 return x def N2(): y=4 return y print (N1+N2)
functions
python
0 Votes
3 Answers
29th Aug 2016, 12:02 PM
Alejandro Pérez Moreno
I want this function to take value x and return 00X but it didn't work why please?
js
0 Votes
3 Answers
29th Dec 2020, 2:13 PM
Abbakar_ah!!!
#include <iostream> using namespace std; int main() { int k=5; int m; m=(m=5)+(++k+k++ + ++k+k++); cout<<m<<" "<<k; return 0; }
c++
cascading
doubt
help
increment
0 Votes
9 Answers
28th Feb 2017, 6:06 AM
Aneesh Satheesh
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
30
31
32
...
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”
2 Votes
I am new
1 Votes
Changing String Variables into int in C++
0 Votes
Advertising in Sololearn
1 Votes
Fill in the blank to declare a static variable.
0 Votes
RUST'S FUTURE
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes
Programming Language
0 Votes
between react and angular which one is the coolest
0 Votes