Code:
#include<stdio.h>
main()
{
	int i=10;
	const int ci=123;
	const int *cpi;
	int *ncpi;
	cpi=&ci;
	printf("Main cpi  %d\n",*cpi);
	ncpi=&i;
	printf("Main ncpi %d\n",*ncpi);
	cpi=ncpi;
	printf("second %d\n",*cpi); 
	ncpi=(int *)cpi;
	printf("%d\n",*ncpi);
	*ncpi=0;
	exit();
}
output
Code:
Main cpi  123
Main ncpi 10
second 10 
10
if it dont include *ncpi=0 it gives the same result