Question: 18
(Choose 1 answer)
FJOVERFLOW.COM
What will be the output of the following C code snippet?
#include <stdio.h>
void display(int num) {
if (num > 0)
printf("Positive");
else if (num < 0)
printf("Negative");
else
printf("Zero");
int main() {
display(-5);
return 0;
}
A. Positive
B. Negative
C. Zero
D. No output