i have a hard code(C code) to print my computer IP address, i'll alter my IP with some requirements and finally i can print the updated IP on screen. now the problem is, i need to set the altered IP address to my computer. anyone please help me in setting a new IP address to a computer using C language as platform.
my hard code and its output is attached below.