Suppose there is a character type array. So, if i like to assign null to it. I have to done as following way (like given code). But I like to assing null to all its index without individually assign null to each index. How does it possible please help. My present technique is like this..............
Code:#include<stdio.h>
int main()
{
char a[100];
int i;
for(i = 0; i < 100; i++)
a[i] = '\0';
return 0;
}