Matrix URI

While working on a sample problem, I got stuck in a problem (Eventually solved)  due to some misplacement of parameters in the function (Which is not much important ) and I got the error message stating “Root segment cannot have matrix parameters” Which was like why root URL can’t have parameters with the mindset that … More Matrix URI

Grown Up Pointers

Shared_pointers #include<iostream> int main(){ int *b=new int(12); //initialize the pointer int *c; c=b;       //make  pointer c points to same pointer delete b; //delete the pointers std::cout<<*c; } Above program will produce an error on running. Why? because the object to which c was pointing got deleted will c is still pointing to it. In … More Grown Up Pointers