What is the Difference between Class and Struct?

Answer Posted / sureshreddy

the diff b/w structure and class is class by deafualt
private, where as structure by default public.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

600


What are qualifiers in c?

572


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

673


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1723


Here is a good puzzle: how do you write a program which produces its own source code as output?

591






What is sizeof int in c?

594


When should a type cast be used?

573


Should I learn c before c++?

599


What is the purpose of macro in C language?

659


What is the return type of sizeof?

588


Why n++ execute faster than n+1 ?

1839


Explain what is meant by high-order and low-order bytes?

631


What does 1f stand for?

606


Is c weakly typed?

571


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1248