Question: Please answer question 5 Write a C program that reads one integer from stdin and uses a function to determine if it is prime or

Please answer question 5  Please answer question 5 Write a C program that reads one

Write a C program that reads one integer from stdin and uses a function to determine if it is prime or not. Output to stdout, with a new line at the end of your output. Output if prime: prime Output if not prime: not prime. Write a C program that reads one integer at a time from stdin and uses a function to determine if each integer contains an even or odd number of 1 bits. Stop on EOF. Output to stdout and end output for each integer with a newline. Output: "even" or "odd" for each input integer. Write a C program that reads one hexadecimal integer at a time from stdin and uses a function to print out the binary representation. Separate 4-bit increments with a space. Stop on EOF. Output to stdout. Output: binary representation of each input hex integer Sample input: 0x4 0xa0l5 Sample output: 0100 1010 0000 0001 0101 Write a C function that computes a left circular shift on an unsigned int. It works like a typical left shift, but any value that gets shifted off the left side wraps back around to the right side. Include both a declaration and the function definition. The function declaration should be: unsigned int Icirc-shift(unsigned int num. unsigned int shifts); Some examples

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!