edited by
306 views
1 votes
1 votes

What is the output$?$

#define THIS
#define THAT

void main()
{
  #ifdef THIS && THAT
         printf("I love beer");
  #else
         printf("I love chicken");
  #endif

}
  1. I love beer
  2. I love chicken
  3. Segmentation fault
  4. Syntax error
edited by

2 Answers

0 votes
0 votes
I love beer could be the output i think...both THIS and THAT are true by default

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
1 answer
3
sushmita asked Mar 27, 2017
512 views
Find the out put of the following C program. main() { char *ptr = "techtud"; char p= (*ptr)++; printf("%s\n",ptr); }the output of the program came as$?$