[mpich-discuss] dynamic 2D array creation error

Kenneth Raffenetti raffenet at mcs.anl.gov
Tue Feb 18 07:48:39 CST 2014


This list is for asking questions about the usage of mpich. General 
programming questions like the below are better suited for a forum like 
Stackoverflow.

On 02/18/2014 12:44 AM, Soheil Hooshdaran wrote:
> Hello. What's wrong with this code snippet?
>
> |1
> 2
> 3
> 4
> 5
> 6
> |
>
> 	
>
> |        int     **lBucket;
>
>         lBucket =new  int*[iWorldSize];//iWorldSize is the nummber of processors
> 		
>   	for(i=0;i<iWorldSize;++i)
> 	    lBucket[i] =new  int[m];|
>
>
>
> Thanks in advance
>
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>



More information about the discuss mailing list