DeadMG's as useless said it very well . I just want to make it simple as per my knowledge, so iI can contribute to society a little bit .
- you know size , you know values .
1)you know size, and you know values .
2)you know size but u donoyou don't know values .
3)you donnodon't know size , and you donnodon't know values .
4)you know size, so you want to create explicit heap allocation with size you. You know through malloc but you donnodon't know values .
5)you donnodon't know size, but you want to create an explicit alocationallocation to heap, and obviously you donnodon't know values too.
Hope this reduces many ambiguities . Thanks to all .