The best book which I refer peoples as a beginner is Let Us C by Yashwant kanetkar. If you are a beginner or in intermediate level this book is really a good resource. If you know how to program in C. So you can prefer
The C Programming Language Book by Brian Kernighan and Dennis Ritchie. This book is not a easy read but it is a best resource to learn C programming language for advance learning.