A
arnuld
1) int i = 3;
2.) int* pi;
3.) int* pi2 = &i
4.) char* pc;
5.) char c;
6) char c2 = 'a'
7.) char* pc2 = &c2
8.) char* ps = "Stroustroup";
9.) extern double d;
2, 4 & 9 are the only declarations here. right ?
i know that 1, 3, 5, 6, 7, 8 are definitions but can we call them
declarations too?
Is 2 a legal declaration?
i dont understand the difference between 7 & 8.
2.) int* pi;
3.) int* pi2 = &i
4.) char* pc;
5.) char c;
6) char c2 = 'a'
7.) char* pc2 = &c2
8.) char* ps = "Stroustroup";
9.) extern double d;
2, 4 & 9 are the only declarations here. right ?
i know that 1, 3, 5, 6, 7, 8 are definitions but can we call them
declarations too?
Is 2 a legal declaration?
i dont understand the difference between 7 & 8.