what is the main difference between sizeof() operator in c
and c++
Answers were Sorted based on User's Feedback
Answer / selvapriya
In C and C++ Sizeof() operator meang is same. .bt java
sizeof()operator is different becoz the datatype carries
value is different..for eg in c and c++ integer contain
2bytes..in java integer contain 4bytes. .
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / rajeswari sethu
hi guys..........i don't know correct ans but i think both r
same because c++ is invented by c and their datatypes has
same bytes so........BOTH R SAME..................
| Is This Answer Correct ? | 2 Yes | 4 No |
What is the difference between a mixin and inheritance?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
what is data hiding.
What is abstraction in oops with example?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
how much classes are used in c++
What is an object?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
What is a macro? And how is a macro same as a template?
How does polymorphism work?
how do u initialize the constant variables
what is the new version of oops