Difference between Class and Struct.

Answer Posted / frozan maqsoodi

the main difference is the default access specifier.
constructors can be declared in structures. try it, you
will get the answer.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stack in c?

614


Explain continue keyword in c

586


What is the use of function in c?

713


What is line in c preprocessor?

614


How can I get random integers in a certain range?

613






How can I generate floating-point random numbers?

606


What is the use of #include in c?

575


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1737


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1783


What is atoi and atof in c?

618


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

745


How do you view the path?

670


writ a program to compare using strcmp VIVA and viva with its output.

1525


Why we use int main and void main?

536


How do you generate random numbers in C?

657