i want to find address of elements of structure in memory
here is my code

```
  #include <iostream>
using namespace std;
struct B{
int k;
float t;
char s;
unsigned int m;
long q;
double x;
unsigned long z;
};

int main(){    
    B   b[]={3,4.23,'A',123,123L,23.340,700};
    void *t=&b[0];
    void *n=&b[0]+7;
    while(t!=n){        
        cout<<t<<endl;
        t++;    
    }
    return 0;
}

```

i dont know if it is correct code and also here is errors

```
1>------ Build started: Project: tests, Configuration: Debug Win32 ------
1>  tests.cpp
1>c:\users\7\documents\visual studio 2010\projects\tests\tests\tests.cpp(16): warning C4305: 'initializing' : truncation from 'double' to 'float'
1>c:\users\7\documents\visual studio 2010\projects\tests\tests\tests.cpp(22): error C2036: 'void *' : unknown size
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

```

please help