9. WAP to access unreserved memory and show how it overwrites the previous data.

 

#include<stdio.h>

void main()

{

        short int i,j;

        printf("Address of &i = %u and of &j = %u\n",&i,&j);

        printf("Enter j value :");

        scanf("%d",&j);

        printf("Enter i value :");

        scanf("%d",&i);

 

        printf(" i = %d & j = %d\n",i,j);

 

}

Comments