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 does volatile do?

563


Using which language Test cases are added in .ptu file of RTRT unit testing???

3581


What's the best way of making my program efficient?

621


what is bit rate & baud rate? plz give wave forms

1512


What is the advantage of an array over individual variables?

733






Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

660


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

601


What do mean by network ?

653


What is sizeof in c?

569


What are variables c?

612


How do you define CONSTANT in C?

647


What is meant by preprocessor in c?

528


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

591


How can I determine whether a machines byte order is big-endian or little-endian?

615


How many levels of pointers can you have?

695