1,108 views
2 votes
2 votes
#include <stdio.h>
 
int main()
{
    float a=5.375;
    char *p;
    int i;
    p = (char*)&a;
    for(i=0; i<2; i++)
        printf("%x", (unsigned char)(p[i]^p[3-i]));
 
    return 0;
}

Explain in detail

1 Answer

Related questions

2 votes
2 votes
1 answer
1
sid1221 asked Nov 2, 2017
508 views
#include <stdio.h #include <stdlib.h int* fun(); int main() { int *a = fun(); printf("%d",*a); return 0; } int* fun() { int *a =(int*) malloc(sizeof(int)); *a = 10; retur...
2 votes
2 votes
1 answer
2
92komal asked Dec 20, 2017
1,137 views
Booth's coding in 8-bits for the decimal number -57 is: A 0-100+1000 B 0-100+100-1 C 0-1+100-10+1 D 00-10+100-1 plz explain this question
0 votes
0 votes
0 answers
4
mohitbawankar asked Dec 20, 2017
685 views
Assume that letters p, q, r, s, t and q have probabilities 1/2, 1/4, 1/8, 1/16, 1/32 and 1/32 respectively. The difference in the average length of the message without an...