Answer:
Computer is called versatile and diligent device because it is used in almost all the fields for various purposes and it can perform the task repeatedly without loosing its speed and accuracy for long time.
#include <iostream> using namespace std; int isPrimeNumber(int); int main() { bool isPrime; for(int n = 2; n < 100; n++) { // isPrime will be true for prime numbers isPrime = isPrimeNumber(n); if(isPrime == true) cout<<n<<" "; } return 0; } // Function that checks whether n is prime or not int isPrimeNumber(int n) { bool isPrime = true; for(int i = 2; i <= n/2; i++) { if (n%i == 0) { isPrime = false; break; } } return isPrime; }
Answer:
Many-to-one
Explanation:
Many-to-one relationships is possible when two tables share the same primary key it is because one entity contains values that refer to another entity that has unique values. It often enforced by primary key relationships, and the relationships typically are between fact and dimension tables and between levels in a hierarchy.
Answer:
Don't worry !! Everything will be fine
Explanation:
Answer:
member wise Initialization.
Explanation:
Member wise initialization is used for the following cases:-
- When you have constant member in your class.
- When you have Reference member in your class.
- When you have a very large member in your class.
- When you have a member with no default constructor.
Member wise initialization is uses initialization and the direct initialization uses assignment.