Lecture02_HelloWorld
Lecture02_HelloWorld
1
Your First Program
#include<stdio.h>
int main() {
printf(“Hello World\n”);
return 0;
2
#include<stdio.h>
3
main()
5
printf(“Hello World\n”);
6
return 0;
7
Comments
‣ serve as inline documentation
8
White Space
‣ spaces, blank lines and tabs
9
#include<stdio.h>
main() {
//a sample comment
printf(“Hello World\n”);
return 0;}
10
RECALL
Software Development Method
errors errors
Compile Program
11
RECALL
Syntax and Semantics
Syntax
Semantics
13