Winners of Campus_12 are
1. Ramu Choudhary
2. Subhra Chakraborty
=========================================================
1. What is a const pointer?
Answer: Constant pointer is NOT pointer to constant. Constant pointer means the pointer is constant. For eg:Constant Pointerint * const ptr2 indicates that ptr2 is a pointer which is constant. This means that ptr2 cannot be made to point to another integer. However the integer pointed by ptr2 can be changed.
Where as a Pointer to constant is const int * ptr1 indicates that ptr1 is a pointer that points to a constant integer. The integer is constant and cannot be changed. However, the pointer ptr1 can be made to point to some other integer.
2. How can you determine the maximum value that a numeric variable can hold?
Answer: unsigned int y = 0;
--y;
now check the value of y. This would contain maximum value that an interger can have.now you can determine the values containing by the signed int.
=========================================================
Imprtant:Send answer of Campus_13 (C Question) top 10 right answer sender's name will be published on main page of sandeeoinfo.com
so send your answer quickly.
Process to send answerSend your answer along with your name and your college name to sandeepinfo@yahoo.co.in
Join http://groups.yahoo.com/group/campus_online/ for more updated information
Earn 1860 Rs/Month by reading SMS
No comments:
Post a Comment