C++ Syntax Question:
Download Questions PDF

What OO language is best?

Answer:

Whichever one works best for the organization.
We believe in honesty, not advocacy, and the honest answer is that there
is no single answer. What is the organization’s policy regarding languages?
Must there be one and only one official language? What is the skill level of
the staff? Are they gung-ho developers with advanced degrees in computer
science/engineering or people who understand the business and have survival
skills in software? Do they already have OO skills? In which language(s)? What
sort of software development is being done: extending someone else’s framework
or building from scratch for resale? What sort of performance constraints does
the software have? Is it space constrained or speed constrained? If speed, is it
typically bound by I/O, network, or CPU? Regarding libraries and tools, are
there licensing considerations? Are there strategic partnership relationships that
affect the choice of languages? Many of these questions are nontechnical, but
they are the kind of questions that need to be answered the “which language”
issue can be addressed.
Regarding the choice between C++ and Java, java is a simpler language and
thus it is generally easier to use. However C++ is more established and allows
finer control over resources (for example, memory management), and this is required
for some applications. Also, C++ has language features such as destructors

Download Basic C++ Syntax Interview Questions And Answers PDF

Previous QuestionNext Question
What’s the “Software Peter Principle”?What are the scope rules you observed in the program?

task:c++ investigate the operation of scope rules in a program.

// variablenamescope

#include <iostream>

using namespace std;

int i = 111;

int main()
{
{
int i = 222;
{
int i = 333;
cout << "i = " << i << endl;
{
int i = 444;
cout << "i = " << i << endl;
{
cout << "i = " << i << endl;
}
}
}

cout << "i = " << i << endl;
}

cout << "i = " << i << endl;

return 0;
}