I have a list of records, at the starting I dont know the number of records. I need to read them into array. so is it advisable to read all record one by one & doing reallo
You could also consider using a linked list instead of an array for your task if it is possible. It will require only malloc to add new elements.
malloc