I am new to arduino please help me in understanding this code
client.read() returns exactly one byte from the serial input buffer for the port connected with object client. That is why you use a char variable. The name c is not relevant.

The next line, Serial.write(c) then writes that same character to the main serial port.

The code basically reads from one serial port and writes the same data immediately to the other serial port.