Skip to content

Instantly share code, notes, and snippets.

@rezan
Created October 18, 2021 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rezan/3f9361082cf06f52be531275dd598103 to your computer and use it in GitHub Desktop.
Save rezan/3f9361082cf06f52be531275dd598103 to your computer and use it in GitHub Desktop.
Valid C program, no errors (-Wall -Wextra -Wpedantic -Werror)
#include <stdio.h>
void test();
int main()
{
printf("no args\n");
test();
return 0;
}
void test(int a, int b)
{
if (a > b) {
printf("A is larger\n");
} else {
printf("B is larger\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment