Ad

Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.

#include<stdbool.h>

const char *bool_to_word (int value)
{
  if (value == 0)
    return "No";
  else if (value!=0)
    return "Yes";
}