Question #142757

Write a C program that bitwise displays the single-precision-floating-point value 3.14 to the screen.

Expert's answer

#include <stdio.h>

int main() {
    float var;
    var = 3.1415926535;
    printf("%.1f", var);
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS