I hope some of you may help me with a basic understanding of pointers assigned to an array with chars in it (specifically letters). My problem is that part of my code when the user is supposed to input letters, 'D' or 'U' doesn't work and I don't know exactly where the problem is. I was trying to set it without pointers but that made my program more complicated and I'm also trying to finally learn that goddamn thing.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int number;
scanf("%d", &number);
char *pz;
char save[number];
for (int i = 0; i < number; i++)
{
pz = &save[i];
scanf("%s", pz+i);
}