if we do not hav the value of n, then how we input the elements in array from user

There shouldn't be any case where you have an array but cannot acquire its size unless your code was poorly designed. Please post some code and describe the program you're trying to write so that we have a little context to work with in helping you.

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.