Explain D Program


  • Posted by  harika 
    6 Oct, 2012

    if the binary equivalent of 5.375 in normalised form is 0100 0000 1010 1100 0000 0000 0000,0000 what is the output of the following c prog?
    main()
    {
    float a=5.375;
    char *p;
    int i;
    p=(char*)&a;
    for(i=0;i<3;i++)
    printf("%02X",(unsigned char)p[i]));
    }

    (a)40 AC 00 00
    (B)00 CA 00 40
    (c)00 00 AC 40
    (D)00 00 CA 04

  • 31 Jan, 2013

    00 00 AC 40

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.