search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
0 votes
3.5k views
A struct is the same as a class except that

(A) there are no member functions.

(B) all members are public.

(C) cannot be used in inheritance hierarchy.

(D) it does have a this pointer
in Object Oriented Programming 3.5k views

1 Answer

1 vote
 
Best answer
Option B is correct since, by default, all members of a struct are public whereas in a class, by default, all members are private.

selected by

Related questions

0 votes
1 answer
1
186 views
Given a string,in which anything except digits are treated as separators, and between each set of separators,there is some substring. count number of separators and substrings and return it with only 1 return statement
asked May 12, 2015 in Programming ajit 186 views
3 votes
1 answer
2
14.3k views
19. a) What is the probability that two people chosen at random were born during the same month of the year? b) What is the probability that in a group of n people chosen at random, there are at least two born in the same month of the year? c) How many people chosen at random are needed to make the probability greater than 1/2 that there are at least two people born in the same month of the year?
asked Nov 25, 2014 in Probability Sahil Gupta 14.3k views
0 votes
1 answer
3
112 views
1. VALID 2.Can't say According to me it's always true , is it so ?
asked Jul 29, 2015 in Programming radha gogia 112 views
3 votes
1 answer
4
2.3k views
Build an FA that accepts the language of all strings of a's and b's such that next-to-last letter is an $a$.
asked May 22, 2015 in Theory of Computation Aakanchha 2.3k views
...