Home
C++ Forum
C++ Tutorials
C++ Home
C++ Resources: Tutorials, Code, Forums, Utilities…
Articles
FAQs
Directory
Quizzes
Surveys
Site News
Topic :
Poiners and Arrays in C++
Author :
GHA
Page :
<< Previous
2
Go to page :
1
2
...
sum1 = addElements(a, 80); // sum1 = a[0] + ... + a[79]
sum2 = addElements(a + 80, 20); // sum2 = a[80] + ... + a[99]
// or, equally acceptable,
// sum2 = addElements(&a[80], 20);
Page :
<< Previous
2
C++ Home Menu
Algorithms & Data Structures
C++ Contests
C++ Forums
C++ Homeworks
C/C++ discussion
Games and Graphics
Maths & Physics
Starting C++
Unix/Linux programming
Windows Programming
For C++ beginners
Elementary C++
Pointers, References, Arrays, Strings
File I/O in C++
Performance analysis of sorting algorithms