google K & R C. note: it is not terribly beginner-friendly. you should learn some basics online, before you read the book.