Wednesday, June 19, 2019

reading hex values from char array

#include <stdio.h>
#include <stdlib.h>

int main()
{
    unsigned char start[2]={0x01,0x02,0x00};
    printf("start[0]=%x\n",start[0]);
     printf("start[1]=%x\n",start[1]);
       // printf("start[2]=%x\n",start[2]);
    return 0;
}

No comments:

Post a Comment

python class topic video