Change the check condition in second nested loop , in the nested loop change j<c to j<=r, you will get your desired pattern. Change only where you are printing the values to obtain desired pattern.
//Now filling the whole places or blocks or bytes with '0'
memset( s , '\0' , row * col); //Pre defined function in library <string.h>
/*
This is what we have done in string it reset the whole garbage value with NULL character you can fill with any character ie space , star, any, or 0 - 9