Mastering-Go-Second-Edition/ch02/willUseGo.c
2019-01-10 09:18:16 +02:00

14 lines
No EOL
262 B
C

#include <stdio.h>
#include "usedByC.h"
int main(int argc, char **argv) {
GoInt x = 12;
GoInt y = 23;
printf("About to call a Go function!\n");
PrintMessage();
GoInt p = Multiply(x,y);
printf("Product: %d\n",(int)p);
printf("It worked!\n");
return 0;
}