By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,234 Members | 2,010 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,234 IT Pros & Developers. It's quick & easy.

Names, Binding , Type Checking, and

P: 5
Take three of your chosen programming languages( C , C ++ and Java) and compare and contrast them on the following perspectives:-
• Type binding
• Storage binding
• Type Checking
Feb 21 '07 #1
Share this Question
Share on Google+
9 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
Take three of your chosen programming languages( C , C ++ and Java) and compare and contrast them on the following perspectives:-
• Type binding
• Storage binding
• Type Checking
That's a statement. Do you have a question about one of those points?

(Please keep in mind the FAQ - we cannot and will not do your homework for you - but we are more than happy to help you find resources through which you can answer the question)
Feb 21 '07 #2

P: 5
That's a statement. Do you have a question about one of those points?

(Please keep in mind the FAQ - we cannot and will not do your homework for you - but we are more than happy to help you find resources through which you can answer the question)

can explain to me storage binding for c c++ and java..compare them..i cant find any source
Feb 21 '07 #3

sicarie
Expert Mod 2.5K+
P: 4,677
can explain to me storage binding for c c++ and java..compare them..i cant find any source
No, as I said, I will not do your homework for you.

But I will help you with this, if you are willing to do work. What google searches have you done to try to figure these out?
Feb 21 '07 #4

P: 5
No, as I said, I will not do your homework for you.

But I will help you with this, if you are willing to do work. What google searches have you done to try to figure these out?
For C

- uses the key word static to define a variable as static


-local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’


Heap-dynamic variables
- variables are created by a call to a system subprogram


For c++


- local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’

- variables are created by an operator


For java

- variables are created by an operator
Feb 21 '07 #5

sicarie
Expert Mod 2.5K+
P: 4,677
For C

- uses the key word static to define a variable as static


-local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’


Heap-dynamic variables
- variables are created by a call to a system subprogram


For c++


- local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’

- variables are created by an operator


For java

- variables are created by an operator
Ok, you have a good start there - where do you need help?
Feb 21 '07 #6

P: 5
Ok, you have a good start there - where do you need help?
C and java is stack dynamic for storage binding..how about c ++ huh?
Feb 21 '07 #7

P: 5
local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’

this statement true for java huh?? its true for c n c++..
Feb 21 '07 #8

sicarie
Expert Mod 2.5K+
P: 4,677
local variables are by default, stack-dynamic, and are called “automatic” and declared as ‘auto’

this statement true for java huh?? its true for c n c++..
I'm sorry, I don't know that much about memory management in Java. I started in C++ worrying about memory and everything, and it's one of the things I gave up when I started learning Java.

Maybe one of our other cross-forum posters can comment on that?
Feb 21 '07 #9

RedSon
Expert 5K+
P: 5,000
For c/c++ variables and objects declared in the local scope are saved in the stack. For heap allocations you have to declare them (correct me if I am wrong) statically or globally (or both) or with a memory management function.
Feb 21 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.