I have a function which accepts an integer array as argument and print it.
void printArray(int arr[3])
{
int i;
for(i=0; i<3; ++i)
{
printf("\n%d", arr[i]);
}
}
Is there a way to pass the values of the array like this
printArray( {3, 4, 5} );
if I know the values before hand without having to create an array just for the sake of passing it to the function?