Print out one of 2 post category [closed]

If I understand your requirements correctly:

$terms = wp_get_post_terms( $post->ID, 'category' );
echo $terms[1]->name;

You can see what other values are returned by var_dumping $terms. The above assumes that you are using the category taxonomy.