Copyright is when someone is given the right to print, publish or make a film.
Answer:
Check the explanation
Explanation:
#include <iostream>
#include <iomanip>
using namespace std;
int getIQ(); // return the score
void printEvaluation(int);
int main()
{
int IQ = 0;
IQ = getIQ();
printEvaluation(IQ);
return 0;
}
int getIQ()
{
int score = 0;
cout << "Please enter your IQ Score to receive your IQ Rating:\n";
cin >> score;
return score;
}
void printEvaluation(int aScore)
{
cout << "IQ Score: " << aScore << " IQ Rating: ";
if (aScore <= 100)
{
cout << "Below Average\n";
}
else if (aScore <= 119)
{
cout <<"Average\n";
}
else if (aScore <= 160)
{
cout << "Superior\n";
}
else if (aScore >= 160 )
{
cout << "Genius\n";
}
}
Answer:
error: incompatible types
Explanation:
Given
The attached code
Required
The output
Variable "a" is declared as float
While p is declared as a pointer to an integer variable
An error of incompatible types will be returned on line 3, <em>int *p = a;</em>
Because the variables are not the same.
To assign a to p*, we have to use type casting.
Hence, (b) is correct