I have a C++ Code Fight question.

Asked 2 years ago, Updated 2 years ago, 20 views

I have two questions while looking at Code Fight answers.

c++

2022-09-21 10:41

1 Answers

The return type of countPairsWithDiffrence() is one long rather than multiple.

where r, m, c, and countPairsWithDiffrence are identifiers using the type long.

You can think of it as a phrase of blindness such as inta, b, c;.

I don't know exactly because you uploaded it as a picture, but it's presumed to be '\t'. In ASCII code, '\t' is an integer 9 so long c['\t'] is equivalent to long c[9]. This means a declaration of a long array of size 9.

It's possible to code in this way, but if you write the code in that way, it's less readable, so don't copy it.


2022-09-21 10:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.