Data Patterns interview question

Write a simple program using c and explain the compilation