Adding back in some comments for line number matchiness
This commit is contained in:
parent
0b956cbf06
commit
2345f4fa0b
2
ex7.c
2
ex7.c
@ -20,7 +20,7 @@ int main(int argc, char *argv[])
|
|||||||
printf("That is only a %e portion of the universe.\n",
|
printf("That is only a %e portion of the universe.\n",
|
||||||
part_of_universe);
|
part_of_universe);
|
||||||
|
|
||||||
|
// this makes no sense, just a demo of something weird
|
||||||
char nul_byte = '\0';
|
char nul_byte = '\0';
|
||||||
int care_percentage = bugs * nul_byte;
|
int care_percentage = bugs * nul_byte;
|
||||||
printf("Which means you should care %d%%.\n",
|
printf("Which means you should care %d%%.\n",
|
||||||
|
2
ex8.c
2
ex8.c
@ -10,6 +10,8 @@ int main(int argc, char *argv[])
|
|||||||
'S', 'h', 'a', 'w', '\0'
|
'S', 'h', 'a', 'w', '\0'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// WARNING: On some systems you may have to change the
|
||||||
|
// %ld in this code to a %u since it will use unsigned ints
|
||||||
printf("The size of an int: %ld\n", sizeof(int));
|
printf("The size of an int: %ld\n", sizeof(int));
|
||||||
printf("The size of areas (int[]): %ld\n",
|
printf("The size of areas (int[]): %ld\n",
|
||||||
sizeof(areas));
|
sizeof(areas));
|
||||||
|
Loading…
Reference in New Issue
Block a user