Contact: aviboots(AT)netvision.net.il
41,652 questions
54,315 answers
573 users
#include <iostream> int main() { const int n = 948; const int *p = &n; //*p = 20; // error: assignment of read-only location ‘* p’ std::cout << n << "\n"; std::cout << *p << "\n"; } /* run: 948 948 */