Question 1 - 20

1
#include<stdio.h>
main()
{
    int a,b;
    float f;
    scanf("%2d%3d%4f",&a,&b,&f);
    printf("%d %d %f",a,b,f);
}

2
#include<stdio.h>
main()
{   
    int i=2, **j, ***k,*h;
    h = &i;
    j = &h;
    k = &j;
    printf("%u %u %u",h,j,k);
    return 0;
}

3
#include<stdio.h>
main()
{
    int a=10,b=20;
    a = a^b;
    b = b^a;
    a = a^b;
   printf("a=%d b=%d",a,b);
   
}

4

#include<stdio.h>
#define MAX 10
int main()
{
    int binary1,binary2;
    binary1 = 0100;
    binary2 = 111;
    printf("%d\t%d\n",binary1,binary2);
    printf("%d\n",binary1+binary2);
   getch();
}

5
#include<stdio.h>>
main()
{
      printf("%d",12);
      printf("%d",12);
      getch();
}