Which of the following are valid function prototypes?
x one(int a, int b);
int thisone(char x);
char another(int a, b);
double yetanother;
void thelastone();
void (function1) void;
void function2(void)
void function3(n, x, a, b);
x void finction4(int n, float, char c);
x void function5(int, a, int n);
Which of the following lines contain errors?
int a, b(2);
x float a23b[99], 1xy[66];
void city[36], town[45];
double temperature[-100];
long phone[200];
int a = {11,22}, b[33];
float c[3] = {11,22,33,44};
double d(4) = (11,22,33,44);
d[4] = {11,22,33,44};
x int a[3]/11,22,33/;
Given this function prototype int calc_area(int*, int*); and
the following variable declarations ( int height, width, area ),
Which of the following lines contain errors?
x clac_are(height, width);
calc_area(*height, *width);
calc_area(&height, &width);
x area = calc_area(&width, &height);
area = &height * &width;
Which of the following lines contain errors?
delete myArray;
x new [8];
new double[8];
delete [10] myArray;
new[1] = 3;
I'm doing questions in back of a book but there are no answers to check work!Need help to make sure I'm correct and x's are my answers!