class basex
{
int x;
public:
void setx(int y) {x=y;}
};
class derived : basex {};
What is the access level for the member function "setx" in
the class "derived" above?
a) private
b) local
c) global
d) public
e) protected
Answer Posted / madhusudan singh
d) public
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How do you print a string on the printer?
Why do we use iterators?
What is difference between n and endl in c++?
Explain linked list using c++ with an example?
What are destructors?
Can comments be longer than one line?
What do you mean by function overriding & function overloading in c++?
Which programming language should I learn first?
What is #include iostream h in c++?
What is function prototyping? What are its advantages?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include Does c++ have foreach? which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1? Describe delete operator?