A bit more silly extra credit for ex12

main
Dan Buch 2 weeks ago
parent df5d4f5a1f
commit 58e734c60f
Signed by: meatballhat
GPG Key ID: A12F782281063434

@ -3,12 +3,16 @@
int main(int argc, char *argv[])
{
int areas[] = { 10, 12, 13, 14, 20 };
areas[0] = 100;
char name[] = "Zed";
name[2] = 'F';
char full_name[] = {
'Z', 'e', 'd',
' ', 'A', '.', ' ',
'S', 'h', 'a', 'w', '\0',
};
full_name[9] = 'x';
areas[1] = name[1];
// WARNING: On some systems you may have to change the
// %ld in this code to a %u since it will use unsigned ints

Loading…
Cancel
Save