Pages

Friday, May 24, 2024

C controls- what is the output

  void main()

{

    int a = 2 ;

    float b = 2.0;


    if (a == b)

            printf("Hi");

}


OUTPUT

Hi


Explaination

the variable a is type casted to float before comparison


No comments:

Post a Comment

What is anti- Debugging

  Anti- debugging is how we can stop somebody from debugging our system and getting all the information out of your subsystem.