// PR_2_11.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>


int _tmain(int argc, _TCHAR* argv[])
{
   const double a=4.2;
   const double* b=&a;
   
   std::cout<<"stala a="<<a<<std::endl;
   double* d = const_cast<double*>(b);
   std::cout<<"po const_cast d="<<*d<<std::endl;
   *d=7.6;
   std::cout<<"po *d=7.6 d="<<*d<<std::endl;
   std::cout<<"a="<<a<<std::endl;   
   system("pause");
   return 0;
   	
}

