3. int max(int x, int y, int z);
(a)
(b)
(c)
(d)
(e)
4. Consider the following method declarations:
int pow(int x, int y);
double pow(double x, double y);
double pow(int x, double y);
Resolve the following function/methods calls in C++, Java, and
Ada:
int x; double y;
x = pow(2,3);
y = pow(2,3);
x = pow(2,3.2);
y = pow(2,3.2);
x = pow(2.1,3);
y = pow(2.1,3);
x = pow(2.1,3.2);
y = pow(2.1,3.2);
Answer: 1. int pow(int x, int y);
2. double pow(double x, double y);
3. double pow(int x, double y);
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
3. int max(int x, int y, int z); (a) (b) (c) (d) (e) 4. Consider the following method declarations: int pow(int x, int y
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am