Incrementing IPv4 Address

It seems like somebody's homework, "How to increment the last field of an IPv4 address?".

For homework questions like this one, I usually answer with something that OP cannot use directly, e.g, with obfuscated code, or in another programming language.

Since it was asked in a forum about C Programming, so instead of using C, I gave this one-liner in Python:

lambda ip: '.'.join(map(str, map(lambda (x, y): (x+y) % 0x100, zip(map(int, ip.split('.')), (0, 0, 0, 1)))))

Test drive:

>>> a = lambda ip: '.'.join(map(str, map(lambda (x, y): (x+y) % 0x100, zip(map(int, ip.split('.')), (0, 0, 0, 1)))))
>>> print(a('192.168.0.100'))
192.168.0.101
>>> print(a('192.168.0.255'))
192.168.0.0