i simply went through adhoc approach to check the validity of IPV4 and IPV6 both addressing scheme:here is my code ... corrections are always welcome in my code. and pardon me if my solution is wrong.
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
}