Printing an array srting

G'Day,
Is there a sneaky way of printing a string that has been composed in an array?
e.g.
char buffer[10];

buffer[0]='c';
buffer[1]='a';
buffer[2]='t'
buffer[3]=0; // null character to indicate end of string
What I normally do is
For (i=0;i<4;i++) Serial.print(buffer*);*
I know I can Serial.print(“cat”) but I use sensor input values to set buffer[] locations, so cannot hard code the string contents.
Tks

Give one of these a try...

Serial.print( buffer );
Serial.print( &buffer[0] );
Serial.print( (char*) buffer );

Or even
Serial.print (&0[buffer]);
:smiley:

Tks, just shows how much more I have to learn.