Advantages of C over java

tedman's Avatar, Join Date: Jan 2007
Go4Expert Member
I was asked this question in an interview recently

List 5 advantages of C over Java!

The only things I could think of were C has pointers and C is faster! what could be the other advantages??

Thanks,
Ted
0
DaWei's Avatar, Join Date: Dec 2006
Team Leader
Advantages are in the mind of the beholder. C is a lower-level language, with more direct control over the machine as actually built. It compiles to directly executable machine instructions, rather than requiring a virtual machine to exist, at run time, on the target. This reduced abstraction is an advantage in some instances and a detriment in others.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I will add some more to the list

1. No global variables in java (Dont Quote me on this but its advantage many a times like the LFC theApp variable)
2. No preprocessor in java.

If it would have been C++ there are many more to add like
1. No support for mulitple inheritence
2. No support for templates
3. Cannot overload operators