Why this code gives a segmentation fault error?

Printable View