Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixup

  • Loading branch information...
commit 6fd00fd79b0f0d639f2fc14038c370635632d350 1 parent 51d3ec7
Ryan Carver authored June 24, 2012
BIN  ex8
Binary file not shown
BIN  ex9
Binary file not shown
10  ex9.c
@@ -2,7 +2,7 @@
2 2
 
3 3
 int main(int argc, char *argv[])
4 4
 {
5  
-  int numbers[4] = {0};
  5
+  int numbers[4] = {'a', 'a'};
6 6
   char name[4] = {'a'};
7 7
 
8 8
   // first print them out raw.
@@ -18,9 +18,9 @@ int main(int argc, char *argv[])
18 18
   numbers[3] = 4;
19 19
 
20 20
   // setup the name
21  
-  name[0] = 'Z';
22  
-  name[1] = 'e';
23  
-  name[2] = 'd';
  21
+  name[0] = '1';
  22
+  name[1] = '0';
  23
+  name[2] = '0';
24 24
   name[3] = '\0';
25 25
 
26 26
   // Then print them out initialized.
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
33 33
   char *another = "Zed";
34 34
 
35 35
   printf("another: %s\n", another);
36  
-  printf("another each: %d %d %d %d\n", another[0], another[1], another[2], another[3]);
  36
+  printf("another each: %c %c %c %c\n", another[0], another[1], another[2], another[3]);
37 37
 
38 38
   return 0;
39 39
 }

0 notes on commit 6fd00fd

Please sign in to comment.
Something went wrong with that request. Please try again.