
Write a program that receives two strings and prints every unique character that appears in either one, without any duplicates. Output order is driven by the second string first, then any remaining characters from the first string.
./char_merge "rebase" "stdin never lies" | cat -eExpected result
stdin evrlba$For your own tracking. Tests grade your code.
./char_merge "grep found nothing" "exit" | cat -eExpected result
exitgrp foundh$./char_merge | cat -eExpected result
wrong number of arguments$Expected files
char_merge.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that receives two strings and prints every unique character that appears in either one, without any duplicates. Output order is driven by the second string first, then any remaining characters from the first string.
./char_merge "rebase" "stdin never lies" | cat -eExpected result
stdin evrlba$For your own tracking. Tests grade your code.
./char_merge "grep found nothing" "exit" | cat -eExpected result
exitgrp foundh$./char_merge | cat -eExpected result
wrong number of arguments$Expected files
char_merge.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.