here is a sample pseudo code of what i want to perform( i am using dev c++)
i want to access array a inside f1(). i can't pass array a as argument because then in the function prototype of f1 it will have to be of fixed size (like a[5][5]). so is there a way to access a inside other blocks. i tried :: operator but it won't work.Code:main() { int r,c; cin>>r>>c; int a[r][c]; } void f1() { .... .... }



LinkBack URL
About LinkBacks


