What enables C to support variable function arguments (varargs), while other languages (like Java) do not support this feature? What is special in C which is not there in Java to support this?

Recommended Answers

All 2 Replies

What exactly are you asking? What enables it? The fact that it is part of the language and someone implemented it.

What exactly are you asking? What enables it? The fact that it is part of the language and someone implemented it.

I was asked this question in an interview. The interviewer wanted to know the feature/strength/capability which is present uniquely in C (and not in Java) due to which C has the support for variable number of function arguments.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.