138. Program to understand what happens when you exceed the limits of array.
#include<stdio.h>
char
a[5],a1[5];
void
main()
{
printf("a = %u a1 = %u \n",a,a1);
printf("Enter a string for a1 :
");
scanf("%s",a1);
printf("%s\n",a1);
printf("Enter a string for a : ");
scanf("%s",a);
printf(" %s \n %s",a1,a);
}
Comments
Post a Comment