C snippet codes