News for hackers. Stuff that matters.
Re:Stress impairs cognitive functions - The loss of those fu... by dclayton on Saturday January 12, 2008 @05:59PM (#97658)
Try looking at the following alternative notation, and see if it makes more sense:

  #include <stdio.h>
  #include <stdlib.h>
  
  void fn(char* c) {
      printf("[%c]\n", *c);
  }
  
  int main() {
      char* c;
      c = malloc( sizeof(char) );
      *c = 'a';

      printf("start\n");
  
      fn(c);
  
      return 0;
  }
  
Regards,

dclayton

There are no comments on this comment yet.