aboutsummaryrefslogtreecommitdiff
path: root/4.3Exercies.txt
diff options
context:
space:
mode:
authorJacobAKnox <[email protected]>2021-10-06 19:50:26 -0700
committerJacobAKnox <[email protected]>2021-10-06 19:50:26 -0700
commit1f7c898ea3a75ecef08c81ca7bb66703b43db53c (patch)
treebd4a1487f1621ce34d49d8f08d06e182cd2aab99 /4.3Exercies.txt
parent3b psudocode (diff)
downloadarchived-cst116-lab2-jacobaknox-1f7c898ea3a75ecef08c81ca7bb66703b43db53c.tar.xz
archived-cst116-lab2-jacobaknox-1f7c898ea3a75ecef08c81ca7bb66703b43db53c.zip
psudocode corrections
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..e002437
--- /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