I need a routine that will take a char variable of size  & will pad the variable with NULLs for the remainder. for example if the variable is only 3 letters then the remaining 17 will be NULLs etc.
This tutorial covers some basics of pointer, pointer arithmetic and function pointer.
What is a pointer:
A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…