this is VerilogHDL class Are the following legal strings If
this is VerilogHDL class
Are the following legal strings? If not, write the correct strings.
a. \"This is a string displaying the % sign\"
b. \"out = in1 + in2\"
c. \"Please ring a bell \\007\"
d. \"This is a backslash \\ character\ \"
Solution
option b and c are corrct but few modifications requires in a and d
like
a) “This is a string displaying the %% sign” - modification is added %
d) “This is a backslash \\\\ character” - modification is added \\ and removed \
