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
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What do you mean by enumerated data type?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is virtual destructor? What is its use?
Do we have to use initialization list in spite of the assignment in constructors?
What is a catch statement?
List the issue that the auto_ptr object handles?
Define what is constructor?
Explain friend class?
Why are pointers used?
Explain how a pointer to function can be declared in C++?
Distinguish between a # include and #define.
Difference between delete and free.
What do you mean by vtable and vptr in c++?
What does flush do c++?