Last active
September 26, 2019 16:50
-
-
Save robwhess/a55e1360b474b910ab19b3af24cd5ae2 to your computer and use it in GitHub Desktop.
Test file for CS 261 recitation 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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