Highlight

Upload file

File:
Type:
Tab:
Show lines:

Example

#   1  #include <stdio.h>
#   2  #include <stdlib.h>
#   3  
#   4  /*
#   5  
#   6  EXAMPLE
#   7  
#   8  Print array
#   9  
#  10  */
#  11  
#  12  /***/
#  13  
#  14  #define max(a,b) \
#  15      ((a>b)?(a):(b))
#  16  
#  17  void print(int * a, int n){
#  18      for(int i=0; i<10; ++i) printf("%d: %d", i, a[i]);
#  19      printf("\n");   // endline
#  20  }
#  21  
#  22  int main(){
#  23      int * a = new int[10];
#  24      char c = '0';
#  25      char * str = "escaped \" \n string";
#  26      char * str = "long \
#  27  string";
#  28      for(int i=0; i<10 && i<10 || i<10; ++i) a[i] = i*c % 10;
#  29      // output: a
#  30      print(a);
#  31      return 0;
#  32  }
#  33  //end
#  34