how can i assign a CONSTANT VALUE TO WHOLE ARRAY..?
plz reply...i will we thankful to you...
plz reply...i will we thankful to you...
const int array[3];
#include "stdio.h"
const int array1[3];
const int array2[3] = {5};
const int array3[3] = {5,6,7};
void print(const int(*pa)[3])
{
printf("%d %d %d\n", (*pa)[0], (*pa)[1], (*pa)[2]);
}
int main (void)
{
const int array4[3];
const int array5[3] = {5};
const int array6[3] = {5,6,7};
print(&array1);
print(&array2);
print(&array3);
print(&array4);
print(&array5);
print(&array6);
return 0;
}
Comment