[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


FAQ in C/C++ --Interviews

<< Back to: LEARN C/C++ TODAY (A list of resources/tutorials)

Question by murugaraja
Submitted on 2/17/2004
Related FAQ: LEARN C/C++ TODAY (A list of resources/tutorials)
Rating: Rate this question: Vote
FAQ in C/C++ --Interviews


Answer by a
Submitted on 3/5/2004
Rating:  Rate this answer: Vote
qddfdsaf sdfsd

 

Answer by neezo
Submitted on 3/27/2004
Rating:  Rate this answer: Vote
what is advantage and disadvantage of pointer?

 

Answer by Sunil Dath
Submitted on 4/2/2004
Rating:  Rate this answer: Vote
The main advantages of using pointers are
1.) Function cannot return more than one value. But when the same function can modify many pointer variables and function as if it is returning more than one variable.
2.) In the case of arrays, we can decide the size of th array at runtime by allocating the necessary space.

Coming to the disadvantages of pointers
1.) If sufficient memory is not available during runtime for the storage of pointers, the program may crash (least possible)

 

Answer by gk
Submitted on 3/9/2006
Rating: Not yet rated Rate this answer: Vote
Sunil Dath has put the things nicely but i think we can consider following things also:
Advantage: Dynamic memory allocation
Disadvantage: Threat of virus

 

Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: LEARN C/C++ TODAY (A list of resources/tutorials)


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.