The above compiles and runs.
/* set variables / array */
printf( "Please enter MAC with no colons: " );
/* notice stdin being passed in */
fgets ( MAC, 13, stdin );
/* first = MAC;
second = MAC;
third = MAC;
puts( first );
puts( second );
puts( third );*/
I have tried printf("%s",MAC); to print to screen the 2 character of the array it compiles but then get run error?
In my minfd i want to printf("%s",MAC) and printf("%s",MAC) etc so that to screen is showns character7character6 etc
The MAC input can contain letters or numbers, this why I have stayed with char instead of int.... is this right?