Please explain the quadrants and provide a simple code (preferably in C) for insertion and search.
Wikipedia has a good article on quadrants . The square section in these slides is very good.
Here are some C implementations (found through Googling for quadtree c - "C ++" - "C #" ):