H
Hans Schneider
char the_case = 42;
void foo(char *x)
{
*x = *x - 1;
}
int main(void)
{
foo(&the_case);
}
42 bottles of beer in the_case, 42 bottles of beer
=> you take its address and pass it to foo()
=> 41 bottles of beer in the_case.
Assuming (CHAR_BITS == 12), what is the next step?
void foo(char *x)
{
*x = *x - 1;
}
int main(void)
{
foo(&the_case);
}
42 bottles of beer in the_case, 42 bottles of beer
=> you take its address and pass it to foo()
=> 41 bottles of beer in the_case.
Assuming (CHAR_BITS == 12), what is the next step?