perf_numbers: Adding snippets searching for perfect numbers
range_expr: Add snippet demonstrating range expressions

Demonstrate range expressions in switch statements.
fptr: Adding fptr snippet

A minimum example, demonstrating function pointer usage.
union: Snippet showing union usage
mem_layout: Snippet illustrating how objects are placed in memory