Array/Equivalents Question

Guys, I need help with this problem if anyone can possibly tell me what the answer is and why. I would greatly appreciate the help here.

Original question in German:
Gegeben ist ein Array v. Welche der folgenden Ausdrucke sind aquivalent?
a) v und v[0]
b) v und *v
c) v und &(v[0])
d) *v und v[0]
e) *v und &v[0]

Translation to English:
Given is an Array: v. Which of the following expressions are equal?
a) v and v[0]
b) v and *v
c) v and &(v[0])
d) *v and v[0]
e) *v and &v[0]
when v is declared as an array, expression v is a pointer to the first element.
if you still don't see it, try to name the expressions, for example: a) v = pointer to first element and v[0] = first element.
so you saying, anything with * is not aequivalent?
If v is a pointer to the first element of the array, what does that say about *v?
How did you come to that conclusion?
do you have any understanding of pointers and *, & operators?
*ptr is the value ptr points to
&val is a pointer pointing to value val
arr[n] is the n'th value of the array
if I said that v is a pointer to the first element, then what is *v? then what is v[0] ? and &v[0]?
if you really don't get it, compile this:
1
2
3
4
5
6
7
8
9
#include <iostream>
#include <string>

int main(){
   std::string v[] = {"I'm a value!", "I'm another one!"};
   std::cout << v << '\n' << v[0] << '\n' << *v << '\n' << &v[0] << '\n';
   std::cin.get();
   return 0;
}
thank you, now it clicked ^^
Topic archived. No new replies allowed.