#include <stdio.h>
void fun(char*);
void fun(char *p)
{
    char b=0x02;
    char c = 0x01;
  *(p++)=b;
  *(p)=c;
}
void main(){
     unsigned int a;
     a=0x0001;
     fun((char*)&a);
     printf("%d",a);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: