Basically, I didn't know where to put this so I choose the Super of the 2 Languages.
Our lecturer gave us an assignment to lay out diff. b/w C & C++, which started with a rather dirty spurge of concepts.
In C program , the MAIN() should NOT RETURN a value.
In C++,MAIN() should RETURN a value.
But going by the ISO Standards, main is expected to return an int. He stated I'm wrong. Can someone lend me a hand here & verify my correctness?
dynamic_cast<template> () is ALLOWED in C
Meh! Give me a break.
Apart from this I googled and came to know about some strange differences:
C does NOT have REFERENCE variables.
C++ ,REFERENCE variables are USED in functions.
C constants are defined as 'MACROS'.
We can make a use of 'CONST' TO declare a constant in C++
Huh? I doubt.
C does NOT SUPPORT DEFAULT arguments.
C++ PROVIDES DEFAULT argument concept.
I only need to verify if the following are correct or not.