Reverse a linked list

Write a program to reverse a linkedlist.

All Strings of N bits


Write a program to print All Strings of N bits:
E.g; for n = 3 -- > 000 100 010 ... 111.