Question 60 - 80

1
#include<stdio.h>
main()
{
	char outline[50];
	char one[7],two[7],four[7],five[7];
	int three;
	sprintf(outline,"this is %d times %s n",10,"charlie");
	printf("%s",outline);
	sscanf(outline,"%s %s %d %s %s",&one,&two,&three,&four,&five);
	printf("%s",one);
	printf("%s",two);
	printf("%d",three);
	printf("%s",four);
	printf("%s",five);
	return 0; 
}


2
#include<stdio.h>
main()
{
	char a='A';
	if( (a=='Z') ||( (a='L') && (a=='A') ) );
	a=a;
	printf("%c",a);
	printf(" Nothing ");
	return 0; 
}


3
#include<stdio.h>
main()
{
	union d
	{
		unsigned int a:1;
		unsigned int b:2;
		unsigned  :0;
                unsigned int d:1;
		unsigned int e:0;
	};
	union d aa;
	aa.a=1;
	aa.b=5;
	printf("d.aa.a=%d d.aa.b=%d",aa.a,aa.b);
	return 0; 
}


4
#include<stdio.h>
main()
{
	abc(((200,100),(300,400)));
	return 0; 
}

abc(int i)
{
	printf("n%d",i);
}

5
#include<stdio.h>
main()
{
	long *p1,*p2;
	int j;
	char *p3;
        p1=&j;
	p2=p1+4;
	j=p2-p1;
	printf("%u %u %d\n",p1,p2,j);
	p3=p1-1;
	j=p1-p3;
	printf("%u %d\n",p3,j);
	j=p3-p1;
	printf("%d \n",j);

	return 0; 
}