C++ copy constructorThanks for the discussion. I should have used "delete [ ] old". If we look at what the copy ctor fo...
C++ copy constructorI am staring at the following code: [code] template <typename T> class A { public: A(const A &sr...
Questions about pointersActually it was an interview question I was asked many years ago. Another such an illegal example is...
Questions about pointersThe following code gives an output of 4111 [code] int list[] = { 1, 2, 3, 4, 5, 6, 7}; int *p = l...
Thread and scanf: strange problemIt seems that you are writing to the global byte variable JOB_TO_DO_THREAD_SPEACH accessed by other ...