Answer with pointers:
char *ptr;
char str[100]="";
for(ptr=str;ptr<str+100;ptr++){
scanf("%c",*ptr);
}