Explanation: cmp(x, y) returns 1 if x > y, 0 if x == y and -1 if x < y.
Q. What is the result of cmp(3, 1)?
β
Correct Answer: (A)
1
Explanation by: Mr. Dubey
cmp(x, y) returns 1 if x > y, 0 if x == y and -1 if x < y.
Discussion
Question Analytics
546
Total Visits
2 y ago
Published
Mr. Dubey
Publisher
82%
Success Rate