struct handling test added in c