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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of polymorphism?

668


write a program that takes input in digits and display the result in words from 1 to 1000

1980


Why interface is used?

547


Advantage and disadvantage of routing in telecom sector

780


Why is static class not inherited?

590






What is encapsulation and abstraction? How are they implemented in C++?

628


How many human genes are polymorphic?

565


What is encapsulation process?

573


What does it mean when someone says I oop?

574


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1777


Why do while loop is used?

568


which feature are not hold visual basic of oop?

1717


How do you define social class?

594


How do you explain polymorphism?

581


What is the real life example of polymorphism?

602