Explanation:
/Header file section
#include <stdio.h>
//Program begins with a main function
int main()
{
//Declare variables
char letters[100][20];
int i, num;
//Prompt and read the input from the user
printf("Enter how many series of strings are you entered:");
scanf("%d", &num);
printf("Enter %d strings:\n", num);
for (i = 0; i<num; i++)
scanf("%s", letters[i]);
//Display those string beginning with letter 'b'
printf("\nThe strings are beginning with the letter \"b\":\n");
for (i = 0; i<num; i++)
{
//Find start letter is 'b' by using ASCIII
//(ASCII value of letter 'b' is 98)
if ((int)letters[i][0] == 98)
printf("%s\n", letters[i]);
}
return 0;
}
<h2>Hey there!</h2>
<h3>Printer is an output device. </h3>
<h2>Explanation:</h2>
<h3>CD - We insert CD,so it is an input device.</h3>
<h3>Hard Drive - It is responsible for the memory of the computer, so it also an input device. </h3>
<h3>Joystick - It is used to play games on a computer, it inputs instructions through which a game/games can be played. So,it an input device.</h3>
<h3>Printer - It is used to print out the hard copies from a computer,like pages etc..</h3>
<h2>Hence, the correct option will be </h2>
<h3>D. printer </h3>
<h2>Hope it helps </h2>