I can not tell what is wrong with my code. I am just trying to learn how to point to structure members.
Code:#include <iostream> using namespace std; struct structure { char c; int i; int a[40]; } str; structure *p; p = &str; int main() { str.a = 89; str.c = 89; str.i = 10; cout << p-> c; system("PAUSE"); return 0; }