What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int i = 1;
for(;i > 128;i *= 2);
printf("%d", i) ;
return 0;
}
-
Choose the right answer:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
char i = 20 + 020 + 0x20;
printf("%d",i);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
#include
int main (int argc, char *argv[]) {
double x = 1234567890.0;
printf ("%f",x);
return 0;
}
Choose the most precise answer:
What happens if you try to compile and run this program?
#include
fun (void) {
static int n = 3;
return --n;
}
int main (int argc, char ** argv) {
printf("%d \n", fun() + fun());
return 0;
}
Select the correct answer:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int i = 1, j = 0;
int 1 = !i + !! j;
printf("%d", 1);
return 0;
}
Choose the right answer:
What happens when you compile and run the following program?
#include
int fun(void) {
static int i = 1;
i++;
return i;
}
int main (void) {
int k, l;
k = fun ();
l = fun () ;
printf("%d",l + k);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
int main (int argc, char *argv[]) {
int i = 'A' - 'B';
int j = 'b' - 'a';
printf("%d",i / j);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
struct s {
int i;
};
void fun(struct S st) {
st.i --;
int main (void) {
int k;
struct $ str1 = { 2 };
fun (str1) ;
k =str1.i;
printf("%d", k);
return 0;
}
-
Choose the correct answer:
What happens when you compile and run the following program?
#include
#define SYM
#define BOL 100
#undef SYM
int main (void) {
#ifdef SYM
int i = 100;
#else
int i= 200;
#endif
int j = i + 200;
printf("%d",i+j);
return 0;
}
Select the correct answer:
What happens if you try to compile and run this program?
enum { A, B, C, D, E, F };
#include
int main (int argc, char *argv[]) {
printf ("%d", B + D + F);
return 0;
}
Choose the right answer:
What happens if you try to compile and run this program?
#include
int *fun(int *t) {
return t + 4;
}
int main (void) {
int arr[] = { 4, 3, 2, 1, 0 };
int *ptr;
ptr = fun (arr - 3);
printf("%d \n", ptr[2]);
return 0;
}
Choose the right answer:
What is the meaning of the following declaration?
float ** p;
Choose the right answer: