what is the main difference between sizeof() operator in c
and c++

Answers were Sorted based on User's Feedback



what is the main difference between sizeof() operator in c and c++..

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

what is the main difference between sizeof() operator in c and c++..

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 main difference between sizeof() operator in c and c++..

Answer / pinakin

Both same

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More OOPS Interview Questions

What is Object and Class? What are the differences between them?

5 Answers  


WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.

7 Answers   ETH,


Write a program to reverse a string using recursive function?

0 Answers   TCS,


diff between Virtual mathod and abstract method?

1 Answers  


the difference between new and malloc

5 Answers   Siemens,






Can we create object of interface?

0 Answers  


What is overloading and its types?

0 Answers  


What is difference between oop and pop?

0 Answers  


Write pseudo code for push in a stack?

2 Answers   emc2,


What is overriding in oop?

0 Answers  


What polymorphism means?

0 Answers  


What is meant by multiple inheritance?

0 Answers  


Categories