Advertisement
thevals

123

Nov 25th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     double** a;
  4.     int n = 3, m = 3;
  5.  
  6.     a = (double**)calloc(n, sizeof(double*));
  7.     for (int i = 0; i < n; i++) a[i] = (double*)calloc(m, sizeof(double));
  8.     a[0][2] = 3.14;
  9.     //for () {
  10.     //  for() a
  11.     //}
  12.     printf("%1.9f", a[0][2]);
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement