Hi
I have the following code which is giving an error while trying to use scanf with it. Please help resolve
uint16_t x[3]={1,2,3};
uint16_t y;
printf(" %"PRIu16",y); (works)
printf("Enter a value for y: ");
scanf("%"PRIu16, &y);
warning: format '%u' expects argument of type 'unsigned int *', but argument 2 has type 'uint16_t *' [-Wformat]