Commit f3dc5910 authored by Zara Saldanha's avatar Zara Saldanha

Lab 9.5 completed

parent 79484e1b
......@@ -142,6 +142,12 @@ int main(){
//compare two strings (problem 5)
//use prompt: comp_strings [str1] [str2]
//for example: comp_strings zara Zara
//will return "not the same"
//comp_strings Zara Zara
//will return "strings are the same"
if(strcmp(argv[0], "comp_strings")==0){
printf("Both strings are the same!\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment