Ukazatele na pole

{“https:\/\/www.jdoodle.com\/a\/a7i?format=text”:”#include <iostream>\nusing namespace std;\n\nint main() {\n int array[10];\n array[0] = 5;\n int* pointer;\n \n pointer = array;\n cout << "Adresa po\u010d\u00e1teku pole je " << hex << pointer << endl;\n cout << "Hodnota na prvn\u00edho indexu je " << dec << *pointer << endl;\n cout << endl;\n \n pointer = &array[0];\n cout << "Adresa po\u010d\u00e1teku pole je " << hex << pointer << endl;\n cout << "Hodnota na prvn\u00edho indexu je " << dec << *pointer << endl;\n \n return 0;\n}”}


Ukazatele na pole
Ohodnoťte tento článek