dagnihot
BAN USER
Questions (2)
Comments (10)
Reputation 80
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
Static data members are members are that shared by all instances of a class.
A common usage is to keep account of the numbers of instances of a class.
Static member functions are used to access private static data members, they do not have a this pointer and they can only access static data members, this is because they are not attached to an instance of an object
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Use rand3() to create a rand2(), 5 in binary is 101, now use rand2(), to decide between 0 and 1, this will give you all the values between 0 and 5, discard the one and return the other.
- dagnihot April 30, 2010