izecksohn@yahoo.com [c-prog]
2018-11-03 00:54:48 UTC
Is the following code correct? Or does it has a bug?
#include <stdio.h>
int main ()
{
unsigned char p0, p1;
printf ("Enter 2 values separated by ; ");
scanf ("%hhu;%hhu", &p0, &p1);
printf ("I understood %hhu;%hhu\n", p0, p1);
return 0;
}
#include <stdio.h>
int main ()
{
unsigned char p0, p1;
printf ("Enter 2 values separated by ; ");
scanf ("%hhu;%hhu", &p0, &p1);
printf ("I understood %hhu;%hhu\n", p0, p1);
return 0;
}