Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

pointer to constant

//the data(value) pointed by the pointer is constant 
	const int *some_ptr {&number_1};
//the adress pointed by the pointer is constant 
  	int *const some_ptr {&number1} ;
 
PREVIOUS NEXT
Tagged: #pointer #constant
ADD COMMENT
Topic
Name
3+7 =