Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that will generate an array of ten random 32-bit integers, and t

ID: 3631700 • Letter: W

Question

Write a program that will generate an array of ten random 32-bit integers, and that will display on the monitor the numbers followed by either the words “ has either the fourth bit or the 6th bit set “ or “does not have either the fourth bit or the 6th bit set”. If one or both of them are set, then the program should indicate which of them are set. Use the test instruction to test whether bits are set or not. Note: The fourth bit from the least significant end ( the 8’s position).

can you provide notes with it please

Explanation / Answer

#include #include #include #define MAX 100 /* Values will be in the range (1 .. MAX) */ static int seen[MAX]; /* These are automatically initialised to zero by the compiler because they are static. */ static int vektor[10]; int main (void) { int i; srand(time(NULL)); /* Seed the random number generator. */ for (i=0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote