Specific requirements for smoke and/or carbon monoxide alarms vary from country to country and from region to region. Installation should always be done according to local regulations and/or applicable codes.
Some helpful resources for installation requirements are provided below. Please consult your local building codes and fire authorities to determine requirements that may apply in your location.
England
Scotland
Wales
Northern Ireland