PDA

View Full Version : why we don’t use semicolon at the end of a function in C++?



sana.pari
04-24-2011, 06:24 PM
Dear Sir,

1. Q: why we don’t use semicolon at the end of a function?

Support
04-24-2011, 06:24 PM
Dear student!
Every language define some rules regarding syntax of that language. This is according to syntax rules of C++ that we can not use semi-colon at the end of a function.If we do so, this would be considered as error.