Right solution!!!

By any way You can'nt overload sizeof operator ..So Your solution is nice one...
Better If You will take care of all cases. At any time object size can be increased as it depends on ilen and clen as you have taken variables..

Now you have to make accesors function like upDateiLen() and GetiLen()
upDateilen() function should taking care of updated values of ilen means called each time when i = new int[ilen]; called and by Getilen() function het the updated value of ilen var. Do same for clen var also.