I am trying to cement my knowledge of pointers ,with very little success at the moment . I want to do the same with the second paragraph of code what i managed with the first . I am obviously using pointers in an illegal way .
Can anyone shed some light.
Code:// this works char word[80] = {0}; word[0] = 's'; cout << word[0] << endl; // this doesnt char* word2 = {0}; word2[0] = 's'; cout << word2[0] << endl;



LinkBack URL
About LinkBacks


