Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
@sks5440,
sorry, but you are compl. wrong.
exmpl.
1. a pointer to the first element of the array, looks like this (datatype *)&arg[0]
2. *arg[1] and esp. **arg ist the same ???, bullschitt !
3. what do you mean, arg[], *arg[1], *arg[999] and **arg are all the same ??, bullschitt ...
Re: Array declaration in C++
#include<iostream>
using namespace std;
int main()
{
int i,j;
double arr[1000][1000];
for (i=1;i<=1000;i++)
for(j=1;j<=1000;j++)
cout<<a[i][j]<<endl;
return 0;
}
size of 1000 means go from 0 to 999, so use this
for (i=0;i<1000;i++)
for(j=0;j<1000;j++)
Rolf
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.