M
Mantorok Redgormor
#include <stdio.h>
struct foo { int example; struct bar *ptr; };
int main(void)
{
struct foo baz;
baz.ptr = NULL; /* Undefined behavior? */
return 0;
}
My second question is not related to undefined behavior.
I read that bitwise AND is equivalent to
"Multiplication modulus two" They made some notation
with something that looked like two Zs'
Anyone familiar with that?
However:
printf("%d\n", 10 & 42);
printf("%d\n", (10 * 42) % 2);
most certainly differ.
but they used ^ for AND and said:
a * b (mod 2) = a ^ b
struct foo { int example; struct bar *ptr; };
int main(void)
{
struct foo baz;
baz.ptr = NULL; /* Undefined behavior? */
return 0;
}
My second question is not related to undefined behavior.
I read that bitwise AND is equivalent to
"Multiplication modulus two" They made some notation
with something that looked like two Zs'
Anyone familiar with that?
However:
printf("%d\n", 10 & 42);
printf("%d\n", (10 * 42) % 2);
most certainly differ.
but they used ^ for AND and said:
a * b (mod 2) = a ^ b