+ 2
The keyword "INT" seems to be used to define both Integers and Function names. Is this right?
8 Respostas
0
Not quite right, the keyword int is always referring to type.
int a = 1; --- The type of the variable a is an integer
int b(value){
return value+1; --- The return type of this function will be an integer
}
int c = b(a); --- The return of function b will be saved into integer c
+ 3
You have int as a value type, and you also have int as a return type. When you see it on a function, rather than void, then you know its return type is int.
+ 1
yes
+ 1
int main(){
return 0;
}
This also returns an integer
0
Great
Thank you.
I was worried I had missed something!! :-)
0
I was thinking of the INT Main command too
0
I see. Thank you.