fork download
  1. #include <iostream>
  2. #include <cstdint>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char array[10];
  8.  
  9. char *pi = array; //адрес первого элемента мкассива;
  10. char (*pa)[10] = &array; //адрес массива;
  11.  
  12. cout << uintptr_t(pi) << " " << uintptr_t(pi + 1) << endl;
  13. cout << uintptr_t(pa) << " " << uintptr_t(pa + 1) << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
140722698875424 140722698875425
140722698875424 140722698875434