+ 21

function declaration

In the code given below why we can’t prototype the makeInt() function without providing the parameters in the function prototyping. PLEASE LET ME KNOW IN THE COMMENTS https://code.sololearn.com/cBs52VQ5MPMu/?ref=app

15th Jun 2019, 9:05 AM
Night_fury~
Night_fury~ - avatar
6 RĂ©ponses
+ 3
You can't do : int makeInt(int[], int) ; ?
15th Jun 2019, 9:08 AM
Théophile
Théophile - avatar
+ 21
i didn’t try that đŸ€Ż p.s: woking perfectly.
15th Jun 2019, 9:21 AM
Night_fury~
Night_fury~ - avatar
+ 13
Nikhil Goyal I tried this already, it gives error
18th Jun 2019, 8:00 AM
Night_fury~
Night_fury~ - avatar
+ 4
😉👌
15th Jun 2019, 9:27 AM
Théophile
Théophile - avatar
+ 2
Int makeint(int, int) Try this....
18th Jun 2019, 3:13 AM
Nikhil Goyal
Nikhil Goyal - avatar
0
.
18th Jun 2019, 6:09 PM
Simon Dice
Simon Dice - avatar