What does localhost:8080 mean?

A TCP/IP connection is always made to an IP address (you can think of an IP-address as the address of a certain computer, even if that is not always the case) and a specific (logical, not physical) port on that address. Usually one port is coupled to a specific process or “service” on the target … Read more

How many spaces for tab character(\t)?

A tab character should advance to the next tab stop. Historically tab stops were every 8th character, although smaller values are in common use today and most editors can be configured. I would expect your output to look like the following: The algorithm is to start a column count at zero, then increment it for … Read more

Pig Latin Translator

Here’s pig latin dialect that takes into account how the words are pronounced: Output “Pig qoph an egg.” → “igpay ophqay anway eggway.” “Quiet European rhythms.” → “ietquay uropeaneay ythmsrhay.” “My nth happy hour.” → “ymay nthway appyhay hourway.” “Herb unit — a dynasty heir.” → “herbway itunay — away ynastyday heirway.” Note: “-way” suffix … Read more

What is a segmentation fault?

Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.” It’s a helper mechanism that keeps you from corrupting the memory and introducing hard-to-debug memory bugs. Whenever you get a segfault you know you are doing something wrong with memory – accessing a variable that has already … Read more