CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
How are pointer variables initialized?
Category C Interview Questions
Rating (2.9) By 14 users
Added on 10/22/2004
Views 7282
Rate it!
Answers:

Pointer variable are initialized by one of the following two ways

?Static memory allocation

?Dynamic memory allocation



Pointers are again variables which hold addresses. Hence, there is no special way of initializing pointer variables. However, towards achieving that perfect code, most programmers initialize the pointers to NULL if they wish to allocate memory at run time using malloc().



 Posted by: Ravi A Joshi    

Contact Ravi A Joshi  Contact Ravi A Joshi


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is static memory allocation and dynamic memory allocation?
View Answer
What is the purpose of realloc( )?
View Answer
Difference between arrays and pointers?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/963/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.83