Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Hour of code Assignment Basic C Program: Puspa Misra   Your Assignment: Please Write a C Program Code which can print these two lines: · My Name is (Your name) · This is My First C program

Hour of code Assignment Basic C Program: Puspa Misra   Your Assignment: Please Write a C Program Code which can print these two lines: · My Name is (Your name) · This is My First C program

Computer Science

Hour of code Assignment

Basic C Program: Puspa Misra

 
Your Assignment:
Please Write a C Program Code which can print these two lines:

· My Name is (Your name)

· This is My First C program.

But first Read this carefully and review the sample example given here at the end in the blue box.

C is a computer programming language. That means that you can use C to create lists of instructions for a computer to follow. C is one of many of programming languages currently in use.

C is what is called a compiled language. This means that once you write your C program, you must run it through a C compiler to turn your program into an executable that the computer can run (execute). The C program is the human-readable form, while the executable that comes out of the compiler is the machine-readable and executable form. What this means is that to write and run a C program, you must have access to a C compiler.

But in this Assignment, I want you to write the program in Notepad. (do not worry about downloading C Compiler)

How a Basic C program works?

A C program basically consists of the following parts −

· Preprocessor Commands

· Functions

· Variables

· Statements & Expressions

· Comments

 

1. The #include <stdio.h> is a preprocessor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program.

2. The stdio.h file contains functions such as scanf() and print() to take input and display output respectively.

3. If you use printf() function without writing #include <stdio.h>, the program will not be compiled.

4. The execution of a C program starts from the main() function.

5. The printf() is a library function to send formatted output to the screen. In this program, the printf() displays Hello, World! text on the screen.

6. \n after Hello world indicates a new line below.

7. The return 0; statement is the "Exit status" of the program. In simple terms, program ends with this statement.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions