text: #include <iostream>\nusing namespace std;\n\nint main()\n{\nint samplearray[3]={0,1,2}; //creates an array\n\nsamplearray[0]=5; //this changes the value of the 1st element to 5\n\nreturn 0;\n)\n\nDeleting the value of an element is just changing it to zero.\nI don't know what you mean by sorting either.