In reply to shubha987:
I think your issue has more to do with how your coverpoints, implicit or explicit, are sampled. You need to show us how the covergroup gets sampled in relation to how the values you are sampling get updated. From the bits of code you have shown you are doing a non-blocking assignment to C, and it’s possible C has not updated at the point you do the sample.