Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char **argv){
- if (argc != 3){
- fprintf(stderr, "Invalid arguments!\n");
- return EXIT_FAILURE;
- }
- int a = atoi(argv[1]);
- int b = atoi(argv[2]);
- /*if ((!a && b) || (a && !b)){
- printf("1\n");
- } else {
- printf("0\n");
- }*/
- printf("%d\n", (!a && b) || (a && !b));
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement