Answer all questions (with a piece of C code for each) given below:a) How many bits does a byte equal

Answer all questions (with a piece of C code for each) given below:a) How many bits does a byte equal to?b) How many bytes does a basic data type (char, int, float, and double) occupies in memory?c) How many bits an integer variable occupies in memory?d) What are the minimum and maximum values a character variable can store?e) What are the minimum and maximum values a short-integer variable can store?f) What are the minimum and maximum values an integer variable can store?g) What is the range of values for a single-precision floating-point variable in memory?h) Write a C program that bitwise displays the character value ‘A’ on the screen. i) Write a C program that bitwise displays the short-integer value 167 on the screen. j) Write a C program that bitwise displays the single-precision-floating-point value 3.14 on the screen. Note that you can write a C function for some questions and assemble all answers in a single C program.

Leave a Reply

Your email address will not be published. Required fields are marked *