Created
October 18, 2021 16:51
-
-
Save rezan/3f9361082cf06f52be531275dd598103 to your computer and use it in GitHub Desktop.
Valid C program, no errors (-Wall -Wextra -Wpedantic -Werror)
This file contains hidden or 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 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