Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What are the differences between a struct in C and in C++?

Answers were Sorted based on User's Feedback



What are the differences between a struct in C and in C++?..

Answer / swetcha

C structure does not support member functions to be
declared in the structure whereas C++ structure can have
member functions declared in them

Is This Answer Correct ?    34 Yes 3 No

What are the differences between a struct in C and in C++?..

Answer / anoop chaurasiya

c structure does not support the concept of data hiding but
in approach of c++ class support the concept of data hiding.

Is This Answer Correct ?    17 Yes 5 No

What are the differences between a struct in C and in C++?..

Answer / shakti singh khinchi

In C, structures never support constructors and destructors
whereas C++ supports both of them.

Is This Answer Correct ?    13 Yes 1 No

What are the differences between a struct in C and in C++?..

Answer / shakti singh khinchi

In C, structures does not support "virtual" mechanism like
virtual functions whereas C++ structures supports virtual
mechanism like classes.

Is This Answer Correct ?    9 Yes 0 No

What are the differences between a struct in C and in C++?..

Answer / jyoti

C++ was based on C and retains a great deal of the
functionality. C++ does not retain complete source-level
compatability with C. There are a few gotchas for C++
programmers trying to write C code, and C programmers trying
to compile with a C++ compiler.

Is This Answer Correct ?    8 Yes 8 No

What are the differences between a struct in C and in C++?..

Answer / aditya

nathing to nswer please show

Is This Answer Correct ?    1 Yes 2 No

What are the differences between a struct in C and in C++?..

Answer / uyvgyu

thanks. it was helpful. now go yourself.

Is This Answer Correct ?    0 Yes 5 No

What are the differences between a struct in C and in C++?..

Answer / nithin

what is the use of struct in c then? wat advantages does it
offer?

Is This Answer Correct ?    1 Yes 8 No

Post New Answer



More C++ General Interview Questions

what are function pointers?

0 Answers  


What is the Difference between "vector" and "array"?

15 Answers   Covansys, Gambit, TCS, Wipro,


Which software is best for programming?

0 Answers  


What is constant in c++ with example?

0 Answers  


What's the most powerful programming language?

0 Answers  






How does the copy constructor differ from the assignment operator (=)?

0 Answers  


Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.

1 Answers  


can anybody please tell me how to write a program in c++,without using semicolon(;)

6 Answers   NIIT,


Difference between Top down and bottom up approaches for a given project ?

14 Answers   BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,


What is an iterator class in c++?

0 Answers  


Differentiate between a constructor and a method in C++.

0 Answers   Tech Mahindra,


What are the general quetions are in DEna bank manager IT/System interviews?

0 Answers   Dena Bank, ICICI,






Categories