Why the number of characters is 4?
4
echo abc|wc -c
Output
The output should be 3, because the number of characters is 3.
3
Its also counting the newline, try
[~]> echo -n abc|wc -c 3
-n tells the echo not to print a newline.
-n
echo