What is the Difference between Class and Struct?

Answer Posted / ashish srivastava

by default
struct elements are public
while
class elements are private

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the condition that is applied with ?: Operator?

910


Which is an example of a structural homology?

1067


What is the use of pointers in C?

870


Is main a keyword in c?

875


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

907


Difference between pass by reference and pass by value?

900


Multiply an Integer Number by 2 Without Using Multiplication Operator

572


What are predefined functions in c?

819


What is data structure in c language?

871


What are types of structure?

871


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

860


Explain how many levels deep can include files be nested?

862


What do you mean by dynamic memory allocation in c? What functions are used?

919


Explain how do you print only part of a string?

965


What is structure pointer in c?

809