C
On this page:
C
7.0

C

Jay McCarthy <[email protected]>

This package is for writing C programs in DrRacket. I use it in class to demonstrate things in C very quickly.

Here is a little example:

#lang c

 

#include <stdio.h>

 

int main() {

  int x = 0.0;

  float r = (++x) / (++x);

  printf("%4.2f\n", r);

  r = 1.0 / 2.0;

  printf("%4.2f\n", r);

  return 0;

}