#include <stdio.h> int main( void ) { char a[3] = "ab"; char b[2] = { 'a', 'b' }; printf( "%s\n", a ); printf( "%.2s\n", b ); printf( "%.*s\n", 2, b ); }