Answer Posted / darren chang
bool checkPrime(int input)
{
for(int i=2; i<(input/2); i++)
{
if((input%i)==0)
{
return false;
}
}
return true;
}
Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
Is main a class in c++?
What is the role of C++ shorthand's?
What are pointer-to-members? Explain.
What does it mean to declare a destructor as static?
Name the debugging methods that are used to solve problems?
What is the latest c++ standard?
Explain the difference between c & c++?
What is std namespace in c++?
What is a singleton c++?
Can I create my own functions in c++?
Can we inherit constructor in c++?
Should a constructor be public or private?
What is purpose of new operator?
Differentiate between late binding and early binding. What are the advantages of early binding?
Explain what is polymorphism in c++?