Below is the program to display your name.
// print name
Here’s a step-by-step explanation of the code:
- The first line
#include <stdio.h>is a preprocessor directive that tells the compiler to include the standard input-output library, which provides functions for input and output operations.
main()function is the starting point of the program. It returns an integer value, which is used to indicate the success or failure of the program execution.
- Inside the
main()function, we use the
printf()function to display the message “Codrity Technologies [YOUR NAME]” on the screen.
- Finally, the
return 0;statement is used to exit the program and return a value of 0 to indicate successful execution.
Once you have written the code, you can compile and run it using a C compiler, such as GCC, on your computer. The program will then display your name on the screen when executed.
To learn more about C Programming join our course.