File: main.c

package info (click to toggle)
ecbuild 3.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,068 kB
  • sloc: sh: 1,404; perl: 732; f90: 472; cpp: 466; python: 383; ansic: 304; fortran: 43; makefile: 15
file content (9 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
#include <stdlib.h>
#include <stdio.h>
int main() {
  int length = 32;
  double* array = (double*) malloc( sizeof(double) * length );
  for( int i=0; i<length; ++ i ) { array[i] = 1.; }
  printf( "%f\n", array[0] );
  free(array);
}