Home » » comparison b/w integer and floating variables

comparison b/w integer and floating variables

I got a question in amdocs about comparison b/w different data types in C. Definitely some people thinks its too easy to judge the output. Bt when you will see same sort of options. You will humble there. Its gud to see the output.




int main()
  {
     int i=1;
     double j=1.00000;
     float k=1;
     if(i==j)
     printf("You r Same\n");
     if(i==k)
     printf("Again you r same\n");
  }

 
 
 
  // Comparing same values with different Data Types.

OUTPUT :


Share this article :

0 comments:

Post a Comment

 
My Other Websites : Ad Networks | Games Copyright © 2014. Study Depth - All Rights Reserved