[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] j = ++i * ++i * ++i
Hi Friend of Tux !
What is this thing about Linux ver 4.2 and 6.2 ? What are these ? What could be
the monstrous reason behind some distro specific numbers havinng surreptitious
relations with a programming / compilation nuance ? I guess you wouldn't want
us to believe that the compilation outputs are different because of some kernel
features like stack implementation or something ? Even that wouldn't explain
4.2. , 6.2 as far as I know, Linux is 2.3.x versions old :)
Just having some fun on this list ..
dont take this mail *too* seriously
Shourya
On Tue, 18 Jan 2000, geetha@xxxxxxxxxxxxxxxx wrote:
*i tried on linux ver 4.2
*j=4*5*6 was the answer i got.
*also logically it is the correct answer.
*i cannot say about linux 6.2
*Geethalakshmi
*
*
*On Tue, 18 Jan 2000, Aseem Rane wrote:
*
*>
*> if i is initialized to say 3,
*>
*> what will be the value of j, where
*>
*> j = ++i * ++i * ++i;
*>
*> on solaris
*> using cc answer is
*> j = 6 * 6 * 6;
*>
*> useing gcc answer is
*> j = 4 * 5 * 6;
*>
*>
*> but on linux (RH6.1 PCQ)
*>
*> j = 5 * 5 * 6;
*>
*> can anybody explain logic behind j's value on linux???
*>
*> bye
*> aseem
*>
*>
*>
*> --------------------------------------------------------------------
*> The Linux India Mailing List Archives are now available. Please search
*> the archive at http://lists.linux-india.org/ before posting your question
*> to avoid repetition and save bandwidth.
*>
*
*--------------------------------------------------------------------
*The Linux India Mailing List Archives are now available. Please search
*the archive at http://lists.linux-india.org/ before posting your question
*to avoid repetition and save bandwidth.
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.