Basically what my program does.
It has one main.
It has one function.
The function is:
int humhum (unsigned long x, unsigned long y)
{
unsigned long res;
printf("Enter an integer for x:");
scanf( "%ul", &x);
printf("\nEnter an integer for y:");
scanf("%ul", &y);
res = x ^ y;
}
Now res will use exclusive ^OR to compare two numbers in binary mode. But what do i do here to use res and and count how many 0s does res have?
I also need to call this function in the main, and then state that this many zeroes are in res.
Thank you for your help. :)