Horje
how to initialize an array to value 0 or -1 Code Example
Initialize all the elements of array to 0
int myArray[10] = { 0 }; // all elements 0
how to initialize an array to value 0 or -1
int arr[10001];
memset(arr,-1,sizeof(arr));

int arr[m][n];
memset(arr,-1,sizeof(arr));


//NOTE:- memset can intialize the array or vector with value -1 or 0 only.




Whatever

Related
export display connection for wsl Code Example export display connection for wsl Code Example
Add combo box columns to infragistics ultra grid in vb.net Code Example Add combo box columns to infragistics ultra grid in vb.net Code Example
anaconda cmderr Code Example anaconda cmderr Code Example
edit every line Code Example edit every line Code Example
rojects.intra.42.fr/uploads/document/document/7026/accept.txt Code Example rojects.intra.42.fr/uploads/document/document/7026/accept.txt Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7