I want to get the MAC address of my PC and assign it to a variable.
I have already tried this code and it outputs the address but I don't know how to assign it to a variable. Also I don't want to prompt anything.
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
system("getmac");
getch();
return 0;
}