Thanks for your reply. Your suggestion works well.
I also found an alternate way to do it. In fact somewhere in the web, I read that when declaring a struct, one has to know the array size apriori. But this is not true. For instance, the following program works
Code:
//--------------------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h>
Leave a comment: