aboutsummaryrefslogtreecommitdiff
path: root/4.3Exercies.txt
diff options
context:
space:
mode:
Diffstat (limited to '4.3Exercies.txt')
-rw-r--r--4.3Exercies.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/4.3Exercies.txt b/4.3Exercies.txt
new file mode 100644
index 0000000..a4f5979
--- /dev/null
+++ b/4.3Exercies.txt
@@ -0,0 +1,16 @@
+3.
+a. int a, int b;
+ There should not be a second "int" after the comma
+b. int a = b;
+ int b = 0;
+ A cannot be assigned the value b before be is declared
+c. int a = 0, b = 3.5;
+ b is not an int
+d. char grade = "A";
+ '"A"' is a string not a char
+e. char c = 1;
+ 1 is a numerical value not a char
+f. int a, b, c, d, f;
+ No error
+g. char x = "This is a test.";
+ '"This is a test."' is a string not a char \ No newline at end of file