- After Successful launch of 5G NSA now the Operators has started the 5G SA deployments.
- Its very early stage of 5G SA deployment thus mostly its is limited to lab testing or restricted live testing.
- in this article i will try to share the 5G SA logs observations.
5G StandAlone (SA)
Monday, 29 March 2021
5G StandAlone
Friday, 15 May 2020
2D Array in C++
There are multiple ways to create 2D arrays in C++.
The important thing to note it there could be below cases:
- Rows known at compile time but column unknown
- Rows unknown at compile time but column unknown
- Rows known at compile time but column unknown
int r=3,c;
int *arr[r]; //Valid configuration
/*
now from some where we have received no of columns
i.e. c = func();
*/
for (i=0; i<r; i++)
arr[i] = (int *)malloc(c * sizeof(int));
- Rows unknown at compile time but column unknown
int **arr;
int c,r;
/*
now from some where we have received no of columns
i.e. c = func1(); r = func2();
*/
int **arr = (int **)malloc(r*sizeof(int *));
for(int i=0;i<c;i++){
arr[i] = (int *)malloc(c*sizeof(c));
}
int *arr[r]; //Valid configuration
/*
now from some where we have received no of columns
i.e. c = func();
*/
for (i=0; i<r; i++)
arr[i] = (int *)malloc(c * sizeof(int));
- Rows unknown at compile time but column unknown
int **arr;
int c,r;
/*
now from some where we have received no of columns
i.e. c = func1(); r = func2();
*/
Subscribe to:
Comments (Atom)