C++ | Usages of Arrays elements| Lecture 8

Lecture 8:
Here you will learn that how to use arrays elements and how to pray with them?
Arrays elements are located or called by their place number or name. Arrays elements place starts from [0]... to so on.

 /*  
  Name: More on arrays  
  Copyright: sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 05/03/14 15:17  
  Description: Here you will learn about usage of arrays element.   
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int ages[3] = {21, 19, 9}; //2nd method  
    cout << ages[1] + ages [0] << endl;  
    system("pause");  
    return 0;  
   }   

Share this article :

Post a Comment

Give your reviews about this blog. Leave your comments. What do you think about this post?

Comments Guidelines:

1) I love to read comments, but please avoid spam.

2) Like this blog, share your insights, and spread the word.

3) You can use basic HTML/xHTML tags.

4) All comments are DoFollow—please use the section professionally.

5) Kindly mention your name or brand below your comment.

6) Constructive suggestions for improvement are always welcome.

7) Do not forget to explore our main agency platform at pingbooster.site.

Thanks for visiting Samee Articles.

========================================

Explore custom digital solutions and WordPress plugins at PingBooster Plugins.

Best Regards,

Samee U. Feroz

 
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger