4. Find out the valid and invalid representation of the following floating point literals:
(a) Rs 45.55 (b) 1.1e–2 (c) 0.1e–03 (d) 1,12.2
(e) 1e–2 (f) 0 (g) –0.0001 (h) 1.1e–1.1
(i) 1.1f (j) –2.2e–3L (k) 0.0F (l) 1223E1
(m) 3.3333L (n) 9.999999FL (o) .1E–3F (p) 0.F
5. Determine the valid character and string literals among the following:
(a) L‘a’ (b) ‘a+b’ (c) L “a” (d) x
(e) L “Hello C++” (f) ‘Computer’ (g) abc123 (h) LU123
(i) “this is a test” (j) L “n” (k) ‘n’ (l) L ‘ ’