So I am trying to print out a string in C and I am consistently getting extra characters at the end of the string when I print it out. The Code:
char binaryN
It should be
char binaryNumber[17] = "1111000011110000";
This is because strings in C are null terminated. So you will be reading garbage if you don't give an extra character space for the implicit \0 which will be added
\0