return tag

18 questions


3 answers
63 views
0
I wonder about Java return.

public class SimpleDotComTestDrive { public static void main(String[] args) { SimpleDotCom dot = new SimpleDotCom(); int[] locations = {2,3,4}; dot.setLocationCells(locations); String userGuess = ...

1 years ago

1 answers
142 views
0
Does anyone know why the main function returns 9?

ISO/IEC 9899:201x Committee Draft — April 12, 2011 viewed in 5.1.2.2.3 Program termination ..reaching the } that terminates the main function returns a value of 0. It says that when the return value i...

1 years ago

2 answers
90 views
0
The right way to do it when multiple return types of Python functions are required?

I need a function that changes the return type according to the conditions as follows.def get_info(command): if command == 'List': result = [1,2,3,4,5] elif command == 'Number': result = 3 elif comm...

1 years ago

1 answers
50 views
0
Spring boot Multiple image files return

I'm using the spring boot gradient base. I have a question. After I bring the path containing the image file from the database, I change the image file to byte and return it, but can you tell me how i...

1 years ago

1 answers
145 views
0
SyntaxError: invalid syntax when called after function definition

I did this, but I keep getting errors def get_generation(x): return str ((x//10)*10) + 'large'age = int(input(x))print(get_generation(age) + I see)If I type 28, I want to get 20s like this..What shoul...


1 answers
116 views
0
I wonder if return is used among the phrases that return the Cotlin value.

Hello, I'm a beginner who just started studying programming.I'm currently studying Cotlin with the goal of developing an app. (I'm studying with Kang's Kotlin programming book.)As I studied, I think r...

1 years ago

1 answers
112 views
0
c, I wonder how the value returned from the c++ function is transferred to the main function

int number(int * x){ Return a value of return *x; // a}int main(){ int a= 1; int b; b= number(&a);}In this case, if you copy the value of a to the variable b and return it, right?But I wonder when...

2 years ago

1 answers
97 views
0
I want to return several return values and call them and use them, but there is an error. TypeError: 'Tuple' object is not callable

I'd like to call the return value of the five ticker and use itTypeError: 'Tuple' object is not callable error.(ticker_head = ticker_head() on the last line.No matter how much I search Google, I don't...

« - 2 -

© 2024 OneMinuteCode. All rights reserved.