I am trying to compile following program using GCC in terminal
//
// fileCopy.c
//
//
// Created by Saurabh Saini on 14/02/18.
//
#include <stdio.h>
int main(){
int c;
c = getchar();
if(c!=EOF){
putchar(c);
c = getchar();
}
return 0;
}
I need to understand what is
<U+0010>

<U+0010>is here indicating that: Unicode character with value 0x10(hexadecimal; 16 in decimal).<U+0010>is calledDATA LINK ESCAPE(DLE)The error is due to this character. Since
<U+0010>is a control character hence it is not being ignored bygcccompiler(whitespace charecters are ignored bygcccompiler) so, it is creating compilation error. Remove this character from your source file and it will solve the problem.Note:
<U+0010>is non printable character so you can't see it. You need to use somehex-editoreditor. You can usevimeditor. See here and here about how to use it.