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

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?

1403


What is the renewal class?

2161


How many human genes are polymorphic?

570


What is encapsulation in ict?

603


What is abstract class in oop?

528






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

633


What is constructor in oop?

586


What are the benefits of oop?

604


What is destructor give example?

601


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1789


What is polymorphism in oops with example?

525


What are the 4 main oop principles?

679


What is debug class?what is trace class? What differences are between them? With examples.

1604


what is difference between class template and template class?

2157


when to use 'mutable' keyword and when to use 'const cast' in c++

1642