return tag

18 questions


1 answers
125 views
0
Is final always executed in the try catch phrase?

try { something(); return success; } catch (Exception e) { return failure; } finally { System.out.println(i don't know if this will get printed out.); }Even if I return in try and catch in...


1 answers
77 views
0
To return one or more values in a function

What kind of method do you use to return multiple values in a function?The method I'm using is as follows.def f(x): y0 = x + 1 y1 = x * 3 y2 = y0 ** y3 return (y0,y1,y2)When there are more elements, i...


1 answers
121 views
0
Is it right to use exit or return in main?

Is it right to use exit or return in main?The main() also has a return type, so I think it's right to use return, but I've seen some codes use exit() together. Which one should I use?

1 years ago

2 answers
80 views
0
This is a question when receiving data when communicating with Android sockets.

I'm trying to get the data through Socket CommunicationI am receiving data by calling readLine using Buffered Reader class.However, when sending data from the server, the data cannot be read without a...


1 answers
79 views
0
The difference between C language return 0 and -1

I was watching a C language lecture and said, I have to do return -1; to end the program, but isn't return 0; also ending the program? What is the difference between the two returns? If there is no di...

1 years ago

1 answers
125 views
0
This is a question about language C return.

int gt(long x, long y){ return x > y;}It's a function of what you doHow can it be used in the main function?If x is larger than y... (what?) Return... I don't know what that is (Crying)

1 years ago

1 answers
86 views
0
I have a question about the value of for statement, break, and return.

Here in the for statementWhat is the meaning of Return? And I want to know when you use break and return.

1 years ago

1 answers
79 views
0
c++) Problems that are automatically deleted and not returned when returning an object in the operator function

I'm writing a linked list. I wrote +=, = operator and checked that it works properly.After that, write the + operator. unvlist unvlist::operator+(const unvlist &ul){ unvlist *list = new unvlist();...

1 years ago

1 answers
69 views
0
Javaio and Carriage Return

Hello. Thank you for always giving me a good answer!I study alone, but whenever I find it difficult to understand even if I search on Google, I am looking for a hash code.Thank you very much.I'm study...

1 years ago

2 answers
71 views
0
It's a question for the return door!

def find_ins_idx(r, v): # Check the data of the already sorted list r from the beginning one by one for i in range (0, len (r)): # If the value of the data in position i is greater than the value of ...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.