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
Define macro.
What is == in programming?
What are the extraction and insertion operators in c++?
Is map ordered c++?
Do class declarations end with a semicolon?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
What is the history of c++?
Explain the differences between list x; & list x();.
How many keywords are used in c++?
What is a driver program?
Is swift better than c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
How can you differentiate between inheritance and implementation in c++?
Explain the concept of memory leak?