Thank you ansari.. I really don't know that sizeof() will work at compile time... and thank you xpi0t0s for the solution given.. I thought there may be some pre defined function which can do this for us..
Thank you Shabbir.. so far I didn't heard about Code Blocks IDE... I will look into it...

Last edited by sharmila; 20Jan2009 at 15:16.. Reason: wrong word...