Question 100 - 120

1
#include<stdio.h>
main()
{
	char **a={"hello","world"};
	char *b=a[0];
	printf("\n%s",b);
}


2
#include<stdio.h>
main()
{
	char *name="name";
	change(name);
	printf("%s",name);
}
change(char **name)
{
	char *nm="newname";
	name=nm;
}

3
#include<stdio.h>
main()
{
	unsigned int c=3;
	unsigned int x=0x0003;
	switch(c&x)
	{
		case 3: printf("Hello!  \t");
		case 2: printf("Welcome \t");
                case 1: printf("to All  \t");
		default : printf("\n");
	}
}


4
#include<stdio.h>
main()
{
	int a;
	a = (1,45,012)>=12?100:200;
	printf("%d\n",a);
	a = 1,2,24<=12?100:200;
	printf("%d\n",a);
	a = (1,2,30);
	printf("%d\n",a);
}


5
#include<stdio.h>
void  main()
{
	int  y,z;
	int  x=y=z=10;
	int  f=x;
	float  ans=0.0;
	f=x*y;
	ans=x/3.0+y/3;
	printf("%d,%.2f" ,f,ans);
}