Question: Two variables, name and alias, have been initialized as strings. Write code that prints Same if they are the same (i.e., contain all the same
Two variables, name and alias, have been initialized as strings. Write code that prints "Same" if they are the same (i.e., contain all the same characters in the same order) and "Different" otherwise. Note: you may use a function from the string library if you like. For example: Test Result char name [] = "Barney", alias [] = "Fred"; Different
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
