I am doing a program store 10 contacts with memberdata phonenumber as cno[10][10], name as cname[10][20] and email as [10][15].
I am having trouble while giving input in the arrays.
C and C++ are case-sensitive. So i is not the same as I, and For is not a legal keyword.
Also, without seeing how you've defined cname, it's hard to know what other problems there might be.
Please provide a minimal, compilable codeset that exhibits the problem. Also, a clear, consise, complete description of what problem you're actually seeing.
The problem I face with this is that after giving input of one name how can I go to next input of another name without filling the total memory locations
Here, if I give the name as xavier with 6 characters then the remaining 14 locations should be avoided and I should fill the next name of another 20 locations likewise by using enough memory locations that are required.
Are you saying that you don't like how typing in "xavier" to an array of length 20 leaves 13 characters unused? If so, your two options are to index with offsets into one big 1-dimensional array, or to use dynamic memory.