Quick pointer question

Hello, i have a quick question.

1
2
3
4
5
6
7
char str[5] = {'h','e','l','l','o'};
 
  char *strp = str;
  for(int i = 0; i < 200; i++){
	  std::cout << strp;
	  strp++;
  }


When i do this, and i do strp++, does it search for the next char value or just the next byte of data and read the value of that byte as a char?
In the case of char, it's the same. If str of an array of ints, strp++ would jump to the next int, not the next byte.
Google pointer arithmetic for more information.
Topic archived. No new replies allowed.