Introduction
In this challenge, you will demonstrate your basic C programming skills by creating a personalized greeting program. As a new junior developer, you will use the printf() function to print a greeting message that includes your name and states that you are learning C programming. The program must be saved as greeting.c, include the <stdio.h> header, and return 0 at the end of execution. You will also need to compile the program using the gcc command.
Craft Your First C Greeting
Welcome to TechLearn Academy's first programming challenge! As a new junior developer, you'll demonstrate your basic C programming skills by creating a personalized greeting program.
Tasks
- Create a C program named
greeting.cin the~/projectdirectory - Use the
printf()function to print a personalized greeting message - Include the necessary header file for input/output
- Compile the program using gcc
- Successfully run the compiled program
Requirements
- The program must be saved as
greeting.c - The program must include
<stdio.h>header - The greeting message must follow the format: "Hello, I'm [Your Name] and I'm learning C programming!"
- Use the
main()function as the entry point - Compile the program using the
gcccommand - The program must return 0 at the end of execution
Examples
Example compilation command:
gcc greeting.c -o greeting
Example output:
Hello, I'm Alice and I'm learning C programming!
Hints
- Remember to include the
<stdio.h>header at the top of your file - Use
printf()to print your message - Don't forget the
\nat the end of your message for a new line - Always include
return 0;at the end of yourmain()function
Summary
In summary, this challenge requires you to create a personalized greeting program in C. You will need to write a C program named greeting.c that includes the necessary header file, uses the printf() function to print a greeting message with your name, and compiles successfully using the gcc command. The program must return 0 at the end of execution to indicate successful completion.



