3. Use correct formatting. The following is WRONG because it implies sz--; is part of the loop:

Code:

for(k=p+1;k<=(sz-1);k++)
a[k-1]=a[k];
sz--;

and this should of course be:

Code:

for(k=p+1;k<=(sz-1);k++)
{
a[k-1]=a[k];
}
sz--;

This also places braces on a line by themselves. Remember what you're trying to do here is to communicate clear program code, not to win any prizes for terseness and compactness, and this means spreading stuff out a bit. Please don't interpret that as "you have to double space everything", because too much space can make stuff just as hard to read as too little.

4. In your comments please use correct English. So the following is WRONG because it uses txtspeak:

so just enter ur first name
n den ur partner's name
and see the result

Look, writing "your" instead of "ur" is only two more letters. Further, you have a QWERTY keyboard presumably and aren't typing this lot in on a mobile phone. Better:

So enter your first name and your partner's first name, then the result will be displayed.

The idea is that the reader will be able to understand what you're saying without having to decode it first. If they have to try to work out what you're prattling on about then this introduces ambiguity that makes it harder to understand.

5. Be aware of letters that look like numbers. What's j counting up to: eleven, or LL, or L-one, or something else?