Borland C ++ Builder Environment - Console App
int main() { int* i, *n, *idx; printf("Enter n: "); scanf("%d", &n); int** A = new int* [*n]; for (*i = 0; *i < *n; *i++) { A[*i] = new int [*n]; } A[3][3] = 100; printf("%d", A[3][3]); for (*i = 0; *i < *n; *i++) delete[] A[*i]; delete[] A; }
After entering the dimension, the program is no longer executed. It does not generate errors, it simply does not run any further.
int *i
and&a
? How to determine the type of expression&a
, if you know the original type ofa
? - What value will the variableint a;
right after its initialization? What will be the answer to the last question, if we are talking about the expressionint *a;
? - Costantino Rupert