Can i write this expression
Hello everyone,
|
void zero (long int bigIntergers[])
|
can
come together like in this statement.
Of course, long int
is a type. Although I believe (could be wrong) in the MS compiler, it's just long, and in GCC it can be either long or long int.
Thank you
. the reason why I asked this because I solve this Home work question.
This is the question and please can you check if I did it wrong.
a) Write the function header for function zero that takes a long integer array parameter bigIntegers and does not return a value. |
My answer:
void zero (long int bigIntergers[])
The teacher said that this two type cannot come together and he detect points from me. Can you tell me what I have to say to him
Thank you again
Write this:
std::cout << "Long int size = " << sizeof(long int) << std::endl;
Show him the output.
I highly appreciate your help.
The teacher said that this two type cannot come together and he detect points from me. Can you tell me what I have to say to him |
You might give him the following quote from the standard:
From 3.9.1 (Fundamental Types), paragraph 2:
There are five standard signed integer types : “signed char”, “short int”, “int”, “long int”, and “long long int”. |
Topic archived. No new replies allowed.