Wednesday 1 December 2010

What will be the correct syntax to initialize all elements of two-dimensional array to value 0?

► int arr[2][3] = {0,0} ;
int arr[2][3] = {{0},{0}} ;
► int arr[2][3] = {0},{0} ;
► int arr[2][3] = {0} ;

No comments:

Post a Comment