23.03.2013 Views

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

Arrays, parameter passing, pointers and dynamic allocation. - ELIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Similarities & Differences<br />

S Look at basic.cpp for example C++ program<br />

S Operators, if/else, loops, commenting are the same as Java<br />

S Variables are not by default zero-initialized!<br />

S You need a main function:<br />

int main() { !<br />

… !<br />

return 0; //success !<br />

}<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!