You are not logged in.

#1 2015-09-11 05:52:11

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Assigned Address:

C Programming Quizzes C++ Placement

Question:
In the following statement,
const char * const cp = xyz;

Option A):
Address assigned to pointer cp cannot be changed
Option B):
Address assigned to pointer cp cannot be changed And contents it points to cannot be changed
Option C):
None
Option D):
contents it points to cannot be changed

Correct Answer is Option B):
Address assigned to pointer cp cannot be changed And contents it points to cannot be changed


Failure is the first step towards seccess.

2015-09-11 05:52:11

Advertisement
Ads By Google

Re: Assigned Address:



\n

Board footer