What is the key difference between a function prototype and a function declaration? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the key difference between a function prototype and a function declaration?

14th Jun 2017, 4:26 PM
Vaibhav Goswami
Vaibhav Goswami - avatar
3 Answers
+ 2
Function prototype contains a semicolon at its end. Function declaration do not contain a semicolon at its end :) I knew the answer. I wrote it. Stupid or revision? ;)
14th Jun 2017, 4:28 PM
Vaibhav Goswami
Vaibhav Goswami - avatar
+ 1
How is that supposed to be a revision? Plus, this section is called Q/A and not note taking.
14th Jun 2017, 4:32 PM
CHMD
CHMD - avatar
0
you're right man! I was just kidding. hope my question gave you some knowledge.
14th Jun 2017, 4:49 PM
Vaibhav Goswami
Vaibhav Goswami - avatar