Exforsys

Online Training

Amazing Value

This is a discussion on Amazing Value within the C and C++ forums, part of the Programming Talk category; I tried the below C program #include <stdio.h> main() { int x; x = x < y < 2; } ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007, 07:16 AM
Member
 
Join Date: Apr 2006
Posts: 98
Angela is on a distinguished road
Amazing Value

I tried the below C program
#include <stdio.h>
main()
{
int x;
x = x < y < 2;
}

Amazing the above program always returns true value. Why is this? Kindly help me in knowing about this amazing value.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-22-2007, 02:44 AM
Junior Member
 
Join Date: Jul 2007
Posts: 1
spark is on a distinguished road
this is so because in c programs u cannot hide datas.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Amazing Output cyrus C and C++ 1 05-08-2007 04:37 PM
Let me know the amazing Fact of ASCII codes to Character displays priyaraji C and C++ 0 05-01-2006 11:11 AM
Amazing webhost @ low prices! StrikeForce Software Patterns 0 10-08-2003 05:36 PM


All times are GMT -4. The time now is 05:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.