I suggest you read "The C Programming Language" by K&R and you'll understand pointers and other complex stuff.
You can use a pointer like "temp[5]" or "temp + 5" which is the same thing when you're dealing with a pointer, that's why you need to read the book its amazing.