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
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What does the linker do?
What is operators in c++?
What is class syntax c++?
Can we use clrscr in c++?
Explain the use of vtable.
Name the implicit member functions of a class.
Is empty stack c++?
What is c++ good for?
Write a code/algo to find the frequency of each element in an array?
What is isdigit c++?
Give an example of run-time polymorphism/virtual functions.
What are the types of container classes?
What is the difference between the functions memmove() and memcpy()?
Can java be faster than c++?