Find the answer to your Linux question:
Results 1 to 2 of 2
I want ask about C. If i declare a variable as double, during the code can i change this type to other? I do not mean the casting but i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    9

    change of variable type


    I want ask about C.

    If i declare a variable as double, during the code can i change this type to other? I do not mean the casting but i change the same variable changing its size.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,488
    You can declare the same variable name in a different scope with a different type but technically, that's a different variable.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •