1. ## Even/Odd number.

How do I check whether the input is even number or whether it's an odd number?

When I say the input I mean
Code:
```char str[] = "12345";
scanf("%s", str);```
Something like that.

2. You can either read it in as an integer, then check if the integer is even/odd, or you can read it in as a string then check if the last character is even/odd.

For actually determining if a number is even/odd, there are a number of ways. The straightforward way is to check if n &#37; 2 is 0, the other involves bitwise and, which is also straightforward if you think in terms of binary representation.

3. I thought of the num &#37; 2 thing.
Look what I tried:
Code:
```char str[] = "12345";
printf("Enter a number:\n");
ch = getchar();

if(ch%2 == 0) oddNumber(ch);
if(ch%2!=0) evenNumber(ch);```
Will it work with getchar? or should I:
Code:
`ch = scanf("%s", str);`
Is that even possible?

4. Will it work with getchar?
You say you tried. What did you find out?

5. Hmm, I haven't actually compiled and run it, lol
I just typed it on the same moment lol

6. Hmm, I haven't actually compiled and run it, lol
Then compile what you have and test if it works to your expectations.