You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-11 05:52:09

Advertisement
Ads By Google

Re: Assigned Address:



Board footer