What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #include <stdio.h> int main(int argc, char *argv[]) { int i = 10 - 2 / 5 * 10 / 2 - 1; printf("%d",i); return 0; } Choose the right answer:A . The program outputs 0B . The program outputs...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? enum { A, B, C, D, E, F }; #include <stdio.h> int main (int argc, char *argv[]) { printf ("%d", B + D + F); return 0; } Choose the right answer:A . The program outputs 10B . The...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #include <stdio.h> int main(int argc, char *argv[]) { int i = 10 - 2 / 5 * 10 / 2 - 1; printf("%d",i); return 0; } Choose the right answer:A . The program outputs 0B . The program outputs...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #include <stdio.h> int main(int argc, char *argv[]) { int i = 10 - 2 / 5 * 10 / 2 - 1; printf("%d",i); return 0; } Choose the right answer:A . The program outputs 0B . The program outputs...
What happens if you try to compile and run this program?
Exams Prep What happens if you try to compile and run this program? #include <stdio.h> int main (int argc, char *argv[]) { int i = 'A' - 'B'; int j = 'b' - 'a'; printf("%d",i / j); return 0; } Choose the right answer:A . Execution failsB . Compilation failsC...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #include <stdio.h> int main(int argc, char *argv[]) { int i = 10 - 2 / 5 * 10 / 2 - 1; printf("%d",i); return 0; } Choose the right answer:A . The program outputs 0B . The program outputs...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #define ALPHA 0 #define BETA ALPHA-1 #define GAMMA 1 #define dELTA ALPHA-BETA-GAMMA #include <stdio.h> int main(int argc, char *argv[]) { printf ("%d", DELTA); return 0; Choose the right answer:A . The program outputs 2B . The program outputs -2C...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #define ALPHA 0 #define BETA ALPHA-1 #define GAMMA 1 #define dELTA ALPHA-BETA-GAMMA #include <stdio.h> int main(int argc, char *argv[]) { printf ("%d", DELTA); return 0; Choose the right answer:A . The program outputs 2B . The program outputs -2C...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #include <stdio.h> int main (int argc, char *argv[]) { char *p = "John" " " "Bean"; printf("[%s]", p) ; return 0; } Choose the right answer:A . The program outputs "[]"B . The program outputs nothingC . The program...
What happens if you try to compile and run this program?
What happens if you try to compile and run this program? #define ALPHA 0 #define BETA ALPHA-1 #define GAMMA 1 #define dELTA ALPHA-BETA-GAMMA #include <stdio.h> int main(int argc, char *argv[]) { printf ("%d", DELTA); return 0; Choose the right answer:A . The program outputs 2B . The program outputs -2C...