Introduction
Welcome to your very first C programming challenge! This exercise is designed to be a gentle introduction to C programming. You'll work with a pre-written program and make a small but important modification. This challenge will help you understand how to edit, compile, and run a C program.
Complete the Greeting Program
In this challenge, you'll complete a simple C program that greets you by name. The program is already written, but it's missing your name. Your task is to add your name to the program so that it greets you personally.
Tasks
- Open the pre-created file
greeting.cin the~/projectdirectory - Locate the incomplete line in the program
- Add your name as a string to complete the program
Requirements
- Edit the file
greeting.cin the~/projectdirectory - Replace the placeholder
"YOUR_NAME"with your actual name (or any name you choose) - Do not modify any other part of the code
Example
Here's an example of how to compile and run your program, and what the output might look like:
$ gcc greeting.c -o greeting
$ ./greeting
Hello, Alice!
Welcome to C programming, Alice!

Note: In this example, "Alice" is the name that was used. Your output will show the name you chose instead.
Summary
In this challenge, you've taken your first steps in C programming by:
- Editing a pre-existing C program
- Understanding the basics of character arrays (strings) in C
- Compiling and running a C program
This exercise introduced you to the process of working with C code, from editing to execution. As you continue your journey in C programming, remember that every program starts with small, manageable steps like these.



