Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. Which of the statements is correct about the program?

     #include
      int main()
      {    
         float a=3.14;  
         char *j;     
         j = (char*)&a;    
         printf("%d\n", *j);    
         return 0;
     } 
    

  2. A.

    It prints ASCII value of the binary number present in the first byte of a float variable a.

    B.

    It prints character equivalent of the binary number present in the first byte of a float variable a.

    C.

    It will print 3

    D.

    It will print a garbage value

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment