Question 40 - 60

1
#include<stdio.h>
main()
{
   union
    {
	enum tag{low=10,medium=20};
	int y;
    }d;
   int p;
   d.y=10;
   p=d.10;
   printf("%d",p);
}


2
#include<stdio.h>
#define merge(front,back) front ## "" ## "" ## "" ## back ## ""
main()
{
	printf("%s",merge("hello","World")"""world");
	return 0; 
}


3
#include<stdio.h>
#ifdef getchar
#undef getchar
#else
#define getchar scanf("%c",ch);
#endif

main()
{
  char ch;
  int c;
  c = getchar();
  printf("%d",c);
}


4
#include<stdio.h>
#define MAN(x,y) (x)>(y)?(x):(y)
main()
{
	printf(scanf,scanf); 
}


5
#include<stdio.h>
main()
{
   int m=10;
   switch(m)
     {
	case 2+10/2*6-10-2 :printf("hello");
	case 2-10+6*5-2: printf("i am here");
	default : printf("i am not here");
      }
  return  0;
}