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 difference between abstraction and encapsulation?

0 Answers  


sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....

2 Answers  


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

0 Answers  


What are objects in oop?

0 Answers  


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,






What is the diamond problem in inheritance?

0 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


What type of loop is a for loop?

0 Answers  


What are oops methods?

0 Answers  


what is virtual function?

3 Answers  


What is basic concept of oop?

0 Answers  


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

0 Answers   CAT,


Categories