Basically, in c++, the programmer is 'spoonfeeded' with various built in functions and algorithms like sorting, searching, string manipulations etc and data structures like linked lists, queue, graphs, etc. However, in C everything, infact all data structures and algorithms are not built in and need to be implemented by the programmer himself.
Hi Ma'am If we use structure in c then example is same as c++ right. It will also can create object for Raghu and Hari right. And it will print both data right. Please correct me if I'm wrong.
Except this information is of 20th century. C and C++ are much different now. If you follow the guidelines of this teacher, you won't get any job in modern industries and companies.
first off, C++ is not and hasn't been a superset of C since C99 standards. C++ is a superset of C90 which is outdated C. 2nd off, modern C programs *CANNOT* compile with a C++ compiler, they're not the same language. 3rd, C++ expressions are not the same as C expressions as there are changes. 4th, C DOES have virtual functions, they're called function pointers and they're more flexible. 5th, C does have polymorphism, you use function pointers... 6th, The teacher lied again, in C you can add floats and integers and together; Operator overloading is changing the meaning of the operators which is not good because then people reading your code will have to think and know whether your plus sign really means plus or something else, making the other person get confused for no reason. 7th, Top-Down and Bottom-Up can be used in C as well, there are no languages that restrict that... 8th, "Mapping between Data and Function is difficult and complicated", yea it's difficult and complicated if you're stupid. 9th, "C requires all the variables to be declared at the starting of scope", Yea in OLD C... Why are you retards programming in old C? Use C99 or C11... 10th, C does have inheritance; if you know how structs and pointers work, you can do inheritance, don't lie... 11th, C does have exception handling, it's literally in "signal.h" header... 12th, Why did you make an object for C++ but use a single variable for C? That's fucking cheating you idiot. No wonder you Hindus can't code for shit, you have bad teachers, who know absolutely nothing, lying to your faces and you're just students, you don't know if they're lying or not so you have no choice but to regard them as true.
Hey bloody there is no scope for scolding , by mentiong Hindu , u also learnt this by someone's or some source , first of all u learn common sense atleast