Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
. Write a program in c++ which defines a function power() to return x raised to y.
c++
-2 Votes
3 Answers
11th Jan 2022, 2:25 PM
Swati Singh
write a program that input an integer and passes it to function.The function should return the number of digits in that number .
c++
digits
functions
in
number
of
0 Votes
8 Answers
3rd Dec 2016, 5:21 AM
Abrar Hussain
void method will not return any value but why do it will return a value when creating a variable inside the void method what does that mean a little bit confusing can you explain?? for example void set(int x)....
java
void
1 Vote
3 Answers
2nd Aug 2016, 7:10 AM
eugene dakarapu
#include <iostream> using namespace std; int main() { int a=10,c=2,b; b=a>>c; cout<<b; return 0; }
c++
increment
0 Votes
2 Answers
28th Aug 2017, 8:19 AM
Rishabh Rai
#include <stdio.h> int main() { char a[100]; gets(a); printf("You entered: %s", a); return 0; ?
input
output
0 Votes
1 Answer
26th Jul 2019, 1:30 PM
Sugavanam S
You are making a Celsius to Fahrenheit converter. Write a function to take the Celsius value as an argument and return the cor
celsius
fahrenheit
-2 Votes
4 Answers
6th Jun 2021, 3:21 PM
Tia
program to return lists whose average is equal to given avgvalue of main list and those list are formed from a given main list
python3
0 Votes
5 Answers
31st Aug 2020, 4:04 PM
Tuticorn
One more problem in Create a FUNCTION. How to create a function,pass parameter and return value? Please tell me
functions
python3
2 Votes
1 Answer
23rd Jun 2019, 9:13 AM
MADHUBAN
Doesn't malloc(); function return a void pointer? Then why in the malloc(); module in C, the type casting is not used?
c_language
malloc();
0 Votes
2 Answers
19th Apr 2020, 8:09 AM
Manthan Gohel
What will happen if I go to challenge a player but by checking low xp I return and do not challenge?
sololearn
4 Votes
3 Answers
15th Aug 2017, 10:00 AM
Mohit Sharma
Define 4 functions add, sub, multiple, div and every function must be with 2 arguments and with return one need to call other
print
-1 Vote
7 Answers
30th Jul 2019, 6:50 AM
Suresh
I have error line 17. I want to return var euros and display it in browser. Thanks you
class
display
euros
extends.
-1 Vote
3 Answers
7th Jul 2021, 5:06 AM
Malick Diagne
import datetime def getdate(): return datetime.datetime.now() print ("Welcome to Health Management System") c_name = input (
python3
0 Votes
1 Answer
5th Jun 2019, 4:56 AM
Joseph Sam
How do I return back to the start of the switch case after inputting value? C#
c#
0 Votes
1 Answer
14th Nov 2022, 5:31 PM
Liam
Why it is not returning anything?
java
return
strings
0 Votes
2 Answers
10th May 2018, 11:12 AM
Ilie Razvan
What means return?
c++
functions
return
1 Vote
3 Answers
13th Apr 2017, 10:34 PM
Elias
What do we mean when we say that the function return a value? What is ' to return' really?
c++
-1 Vote
5 Answers
21st Dec 2016, 12:21 AM
meilly
One error missing return statement on line22?but I saw the code didn't get why error is showing.see below code
code
java
javacodr
javalogin
javasignup
program
programming
signup
0 Votes
2 Answers
23rd Jun 2019, 9:49 PM
Smit Kalkani
Hello can i change return(0) to another numbers like 2,3,5 and what is the function of return thabk
c#
c++
1 Vote
2 Answers
19th May 2020, 11:42 AM
Boqorre Hd
My template class method returns bad type ?
c++
methods
return
templates
2 Votes
2 Answers
30th Jun 2020, 4:38 AM
Terminal_Phantom
i have an array and i need to iterate the array and return all matches
all
arrays
from
matches
return
0 Votes
2 Answers
19th Mar 2017, 8:36 AM
jeremiah orourke
Write a program in C++ and start with int main(). . and end with return 0 .. if we remove 0 with another number ..
c++
compile
error
function
main
operation
return
warning
6 Votes
4 Answers
1st May 2017, 8:36 AM
P∆WAN M∆URY∆
How strong is the "finally" keyword
finally
python
return
2 Votes
2 Answers
19th Mar 2018, 12:10 PM
Khushal Sahni
Code Questions: what is the return value of the function in the description below 👇This is a javascript function. 👍
javascript
nilujr
picore
0 Votes
2 Answers
22nd Feb 2023, 8:41 AM
FlexGod
#include <string> #include <iostream> using namespace std; int main() { string colour = "black" ; cout <<" chge"; return 0;}
c++
0 Votes
2 Answers
31st Jul 2018, 9:01 PM
Piyush Goyal
Can help me with this cs code? I cant look the error, every sum return me 0, what is the problem?
c++
c++code
c++codigo
code
codigo
codigoc++
cs
csccode
helptocoding
0 Votes
4 Answers
4th Jun 2018, 2:01 AM
Osos Caca Cola :u
What will be string.length return if we assign a big value to a string. i.e greater than max value of int.
c#
challenge
challenges
coding
maxlength
programming
sololearn
string
1 Vote
5 Answers
16th Feb 2018, 4:26 PM
Shrawan Kumar Chavan
Can anyone help me with this code?
binarysearch
java
return
rotatedarray
1 Vote
4 Answers
15th Oct 2022, 12:35 PM
Hemasri Kottapalli
I have a table where one of the fields can be empty. I'm trying to return only these rows where this field is empty. Any ideas ?
c#
sql
3 Votes
10 Answers
10th May 2017, 2:20 PM
Ramin Bagherian
How do i write a function that accepts a tuple of numbers and return a tuple with odd numbers squared? Eg ((1,2,3)) becomes
python
0 Votes
4 Answers
12th Mar 2020, 4:51 PM
Tan
def ModeratedMarks(marks, passMarks): if marks == passMarks-1 or marks == passMarks-2: marks = passMarks return marks def main
python
0 Votes
2 Answers
21st Feb 2022, 6:43 AM
Anushka Dwivedi
Для чего конкретно нужна команда return?
functions
javascript
return
russian
0 Votes
4 Answers
5th Oct 2018, 12:20 PM
Лешка Тельпис
How to implement a function which modify a list using list slicing and yet does not return a value
python
0 Votes
2 Answers
15th Mar 2020, 3:29 AM
Tan
can someone tell me why this code take me to sololearn site instead of w3schools when I click the button?
function
html
javascript
link
return
var
4 Votes
10 Answers
29th Mar 2019, 12:23 AM
Glory222
In Turbo C, while mentioning return 0 it never shows the output but mentioning getch it always shows output of any program. Why?
data-types
2 Votes
3 Answers
21st May 2020, 4:22 AM
Lavanya Shinde
how to Write a class having two public variables and one member function which will return the area of the rectangle in c++
c++
0 Votes
4 Answers
29th Oct 2021, 4:12 PM
Younis Ahmad
what's returning a value....??
java
methods
return
1 Vote
3 Answers
25th Sep 2016, 5:13 PM
Dinuka
Why our program runs without any errors even we forget to put return 0; in the code? And why the c++ compiler ignores it?
c++
0 Votes
4 Answers
18th Sep 2020, 5:15 AM
V1rtual*_*boi
This is a part of my code. I want to get the value of x to work with. But it’s showing that x is not defined. Please solve.
break
else-statements
function
if
python3
return
0 Votes
11 Answers
23rd Jun 2021, 10:07 AM
Soumaya Islam Rimi
How to make a program that display the reverse of the number entered.
code
python
return
sololearn
0 Votes
4 Answers
30th Nov 2022, 7:07 AM
Anonymous
whats the problem?
bank
constructors
float
java
return
super
this
0 Votes
16 Answers
29th May 2020, 3:36 PM
Yahel
Why does main have void return type, even though there are executable statements within? Is it due to the lack of the 'return'?
methods
0 Votes
4 Answers
20th Jan 2021, 4:16 PM
Hillary Moneke
What is the meaning of "a function which does not return a value" and " a function returns some value" ?? Please send the answer
c++
functions
main
void
3 Votes
7 Answers
28th Jul 2017, 10:20 AM
Yasir Faiz Ahmed
Write a single line code in python3. to return list of first letter of each word from given statement.
python3
0 Votes
2 Answers
30th Mar 2020, 11:19 AM
AMRIT PRASAD PHUYAL
How can i delete a digit from number? . example: if i=123445 its return i=12445 its delete the digit 3 from the number
c#
java
1 Vote
6 Answers
8th Jan 2017, 7:55 PM
java-c sharp
Why is it important to put the value of zero when declaring a variable and in c++, whats the purpose of return 0?
c++,
java
return
2 Votes
2 Answers
24th Feb 2017, 1:36 PM
Allen Villanueva
I always read about returning values and it explains that the return keyword returns a value, but what does that even mean?
c#
c++
java
1 Vote
5 Answers
5th Jan 2017, 12:03 PM
Lily Awertnex
[ ASSIGNMENT: ] Next bigger number with the same digits
assignment
bigger
digits
function
next
numbers
positive
return
same
task
26 Votes
12 Answers
29th May 2018, 7:47 AM
Danijel Ivanović
After i return all the values in inputstream,what would inputstream be?empty or something like null?
java
0 Votes
1 Answer
1st Nov 2017, 3:04 PM
YuHai
Defining the Method that just prints out a string, Why is there no return neccessary?
java
methods
0 Votes
1 Answer
31st Dec 2016, 4:49 PM
eternallatesummer
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
35
36
37
...
45
Next >
Hot today
X velocity
2 Votes
And... Who is the staff then?
3 Votes
Files not linking in C++
0 Votes
I am a super beginner
1 Votes
Web Dev
1 Votes
I want to make a triangle area calculator ,anybody can teach me
2 Votes
Img & web server or personal info
0 Votes
Pls give me an idea
1 Votes
Why Pro?
1 Votes
How to achieve "Sololearner" achievement?
0 Votes