linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Type casting
@ 2004-12-10  4:23 Bakki Srinivas
  2004-12-10  9:28 ` wwp
  0 siblings, 1 reply; 4+ messages in thread
From: Bakki Srinivas @ 2004-12-10  4:23 UTC (permalink / raw)
  To: Linux C programming

[-- Attachment #1: Type: text/plain, Size: 117 bytes --]

can any body explain what is the type of x in : 

    x = (int) (float) x;

Thanks with regards
Srinivas Bakki

[-- Attachment #2: disclaimer.txt --]
[-- Type: text/plain, Size: 1091 bytes --]

-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission."

-----------------------------------------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Type casting
  2004-12-10  4:23 Type casting Bakki Srinivas
@ 2004-12-10  9:28 ` wwp
  0 siblings, 0 replies; 4+ messages in thread
From: wwp @ 2004-12-10  9:28 UTC (permalink / raw)
  To: linux-c-programming

Hello Bakki,


On Fri, 10 Dec 2004 09:53:59 +0530 "Bakki Srinivas" <bakki_srinivas@mindtree.com> wrote:

> can any body explain what is the type of x in : 
> 
>     x = (int) (float) x;

No way to know x's type unless you show us the x declaration (maybe: int x; ?).
You're maybe dealing w/ the type of the value that will be assigned to x
(int)?


Regards,

-- 
wwp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Type casting
@ 2004-12-10 10:04 Bakki Srinivas
  0 siblings, 0 replies; 4+ messages in thread
From: Bakki Srinivas @ 2004-12-10 10:04 UTC (permalink / raw)
  To: wwp, linux-c-programming

ya , lets take it to be declared of type int.

-----Original Message-----
From: wwp [mailto:subscript@free.fr]
Sent: Friday, December 10, 2004 2:59 PM
To: linux-c-programming@vger.kernel.org
Subject: Re: Type casting


Hello Bakki,


On Fri, 10 Dec 2004 09:53:59 +0530 "Bakki Srinivas"
<bakki_srinivas@mindtree.com> wrote:

> can any body explain what is the type of x in : 
> 
>     x = (int) (float) x;

No way to know x's type unless you show us the x declaration (maybe: int x;
?).
You're maybe dealing w/ the type of the value that will be assigned to x
(int)?


Regards,

-- 
wwp
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Type casting
@ 2004-12-10 10:06 r_zaca
  0 siblings, 0 replies; 4+ messages in thread
From: r_zaca @ 2004-12-10 10:06 UTC (permalink / raw)
  To: linux-c-programming

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 302 bytes --]

> > can any body explain what is the type of x in : 
> > 
> >     x = (int) (float) x; 
> 
> No way to know x's type unless you show us the x declaration (maybe: > int 
x; 
> ?). 
> You're maybe dealing w/ the type of the value that will be assigned > to x 
> (int)? 

  So what is the "(float)" for? 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-10 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-10  4:23 Type casting Bakki Srinivas
2004-12-10  9:28 ` wwp
  -- strict thread matches above, loose matches on Subject: below --
2004-12-10 10:04 Bakki Srinivas
2004-12-10 10:06 r_zaca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).