Skip to content

Instantly share code, notes, and snippets.

@robwhess
Last active September 26, 2019 16:50
Show Gist options
  • Save robwhess/a55e1360b474b910ab19b3af24cd5ae2 to your computer and use it in GitHub Desktop.
Save robwhess/a55e1360b474b910ab19b3af24cd5ae2 to your computer and use it in GitHub Desktop.
Test file for CS 261 recitation 1
#include <stdio.h>
void foo(int x);
int main(int argc, char** argv) {
char* name = "PUT YOUR NAME HERE";
printf("My name is: %s\n", name);
foo(2);
foo(4);
foo(2 + 4);
foo(2 - 4);
foo(2 * 4);
foo(2 / 4);
}
void foo(int x) {
printf("The function foo was passed the number %d\n", x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment