char* p=(char*)malloc(10);
in the above state ment,has the memory been initialised??...what is the difference between allocatingg it and initialising it??
thanks in avdance...
IndianaRonaldo -3 Light Poster
Recommended Answers
Jump to Post1. Allocation means to create space for your application use
2. Initialize means to assign specific values to that spaceUsing malloc creates space, but contents of space undefined
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.