ii) Have a look at the following piece of code, state and explain the output.
#include <stdio.h>
using namespace std;
int fun(int n){
if(n % 2 == 0)
return 1;
return 0;
}
int main() {
// your code goes here
if(fun(2))
printf("Hi");
else
printf("Bye");
return 0;
}
Attachments:
Answers
Answered by
0
Explanation:
I don't understand what is this?
Similar questions