#include <stdio.h>
main()
{
char real_array[20];
printf("Realarray can hold %d chars.", sizeof(real_array));
getarray(real_array);
}
void getarray(passed_array)
char passed_array[];
{
printf("\nPassedarray can hold %d chars.",
sizeof(passed_array));
}
---------------------------------------------------------------
Results : (under Power C and Instant C)
Realarray can hold 20 chars.
Passedarray can hold 2 chars.
---------------------------------------------------------------