Technical Akash
Tuesday, February 5, 2019
C++ With Technical Akash | Data type , Array and Pointers
Array basic example
#include <iostream>
using namespace std;
int main()
{
int a[]={3,5,4,6,7};
cout<< a[3];
}
output
While loop in in array;
#include<iostream>
using namespace std;
int main()
{
int a[]={2,4,45,5,35,46,4567,567,57,567,45,75,};
int b=0;
do
{
cout <<a[b] <<endl;
b+=1;
}
while (b<6);
}
1 comment:
Unknown
February 6, 2019 at 9:42 PM
Super akash
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Super akash
ReplyDelete