S
Sharad Kala
| Alf P. Steinbach wrote:
| > * (e-mail address removed):
| > > I prove to you using code and arrays with diffrent size elements that
[snip]
| I am beginning to think I'am off topic due to ignorance on
You are not offtopic, but incorrect in your understanding.
| what is concidered c and what is considered c++.
| What separates them form each other? Is there such a thing as pure c++?
That makes little sense to me. C and C++ are two different programming
languages. C++ has tried to maintain compatibility with C, but not every
valid C program is a valid C++ program.
| I was thinking about the sum of the both and what can be done and not.
| You seem to know:
| how do
| int i[]={1,2,3,4};
| void main()
This exhibits undefined behavior. Main has _never ever_ in the history of
C++ returned void.
| {
| i[2]=6;
*(i + 2) = 6
Pointer aritmetic gets you to the right offset (i.e. i + 2*sizeof int).
| }
| compile and on what level is stuff happenning?
Sharad
| > * (e-mail address removed):
| > > I prove to you using code and arrays with diffrent size elements that
[snip]
| I am beginning to think I'am off topic due to ignorance on
You are not offtopic, but incorrect in your understanding.
| what is concidered c and what is considered c++.
| What separates them form each other? Is there such a thing as pure c++?
That makes little sense to me. C and C++ are two different programming
languages. C++ has tried to maintain compatibility with C, but not every
valid C program is a valid C++ program.
| I was thinking about the sum of the both and what can be done and not.
| You seem to know:
| how do
| int i[]={1,2,3,4};
| void main()
This exhibits undefined behavior. Main has _never ever_ in the history of
C++ returned void.
| {
| i[2]=6;
*(i + 2) = 6
Pointer aritmetic gets you to the right offset (i.e. i + 2*sizeof int).
| }
| compile and on what level is stuff happenning?
Sharad