APSC 160 Chapter Notes - Chapter 2.8: Semicolon

86 views2 pages
31 Aug 2016
School
Department
Course

Document Summary

We cannot name variable as int int = 3 as int is a reserved keyword only for int datatype. Variable names can also start with a letter or underscore. Following is the syntax of c programming language: This is a basic simple program of c . The first two lines are header files which include all the necessary functions to execute a program. We don"t have to write functions from scratch for common things. For example, printf is one such function that is included in stdio. h file. Every program has one entry point which a compiler reads from. So the entry point in c is void main(). main() is a function because it has braces after it. void means this main function doesn"t return anything. It is terminated by a semicolon which is necessary for compiler to understand that the statement printf( hello world ); is terminated here. // symbol is used to comment out something.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents