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 ...
  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
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    You can declare the same variable name in a different scope with a different type but technically, that's a different variable.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

Posting Permissions

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