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

Explain about C function prototype?

801


what type of questions arrive in interview over c programming?

1762


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

846


Define macros.

1013


Why main function is special give two reasons?

1203


Are comments included during the compilation stage and placed in the EXE file as well?

865


What is meant by gets in c?

799


How can you restore a redirected standard stream?

783


What are types of functions?

751


code for quick sort?

1807


What is the difference between a function and a method in c?

784


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1017


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1467


Why should I prototype a function?

824


Which type of language is c?

825