We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
can i get one example for the code that can i write in c but not in cpp language i am waiting for ur ans plz mail me
The reason why you want an example of code that is valid in C but not valid in C++, is obviously that you have to do a bit of school work.
Do you really think that it is needed - or expected or even allowed - to request help from other people?
Hopefully, the teacher will verify that the students actually understood the solution they gave. Otherwise, the value of any kind of diploma from the school in question is doubtful.
One would, indeed, hope this was true; however, some schools/teachers are more intersted in high graduation rates than verifying the graduates even have an inkling.
Based on what has been seen in this forum, a large percentage of diplomas are misprinted, they should read "graduated in copying".
Erik
Are you sure?
Maybe "Master of Begging"?
Or maybe "Energy Star" for minimizing own enercy consumption?
"...is obviously that you have to do a bit of school work"
Not always ... I have a junior programmer assigned to me at the moment and he asks many odd questions; some of this type. Trouble is, he seems to cycle through the same ones every month or so.
And - No had absolutely nothing to do with his selection!
:-)
Anyone who want to know about C code that is incompatible with C++ because of own interest is most definitely serious about learning to program.
Such persons normally know how to use Google, and how to write complete sentences without SMS abreviations.