I'm currently learning pointers and the write function. I've written the code below. My question is the write functions does not print anything at all. In the write function's manual, it says that the second parameter must be buffer so is a pointer to that value. I put the asd's address through the pAsd pointer. In according to function's manual, it should print the value of asd but it doesn't.
#include <unistd.h>
int main()
{
int asd = 21;
int *pAsd = &asd;
write(1, pAsd, 4);
}