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...

February 23, 2025 No Comments READ MORE +

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...

February 21, 2025 No Comments READ MORE +

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> #include <string.h> struct STR { int i; char c[20]; float f; }; int main (int argc, char *argv[]) { struct STR str = { 1, "Hello", 3 }; printf("%d", str.i + strlen(str.c)); return 0; } Choose the...

February 7, 2025 No Comments READ MORE +

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...

February 6, 2025 No Comments READ MORE +

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...

January 25, 2025 No Comments READ MORE +

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 *f(); int main (int argc, char *argv[]) { int *p; p = f(); printf("%d",*p); return 0; } int *f() { static v = 1; return &v; } Choose the right answer:A . The program outputs 1B...

January 19, 2025 No Comments READ MORE +