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
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 4.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
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 204 views
3 votes
1 answer
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.5k views
0 votes
1 answer
1. VALID 2.Can't say According to me it's always true , is it so ?
asked Jul 29, 2015 in Programming radha gogia 118 views
4 votes
1 answer
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.7k views