0

Cn u hlp me about functions...wht is rerturn type??

11th Feb 2019, 9:20 AM
Gaurav Panwar
Gaurav Panwar - avatar
6 odpowiedzi
+ 1
Cn u give me some examples on function return type
12th Feb 2019, 10:15 AM
Gaurav Panwar
Gaurav Panwar - avatar
0
A function can return one value, and this value has a type like every value. So the return type is the type of what your function is going to return.
11th Feb 2019, 9:57 AM
HonFu
HonFu - avatar
0
But is it required to return any value in function
12th Feb 2019, 1:23 AM
Gaurav Panwar
Gaurav Panwar - avatar
0
No, then you choose 'void' as return type (returning nothing).
12th Feb 2019, 5:54 AM
HonFu
HonFu - avatar
0
Bro...will u plszz call me!!!😇😇😊
12th Feb 2019, 6:23 AM
Gaurav Panwar
Gaurav Panwar - avatar
0
Gaurav Panwar, what do you mean? Summary: int f() means: f will return an int; char f() means: f will return a char; void f() means: f will return nothing.
12th Feb 2019, 9:15 AM
HonFu
HonFu - avatar