Programming in C: Sharmina Zaman
Programming in C: Sharmina Zaman
Lecture 1
Sharmina Zaman
Quick Intro to C
– Goal is to get you to a point where you can write
useful programs.
– Without getting bogged down into rules, details and
exception (All these will come in later parts)
– Concentrate on the basics:
• Variables
• Constants
• Arithmetic
• Control-Flow
• Functions
• Rudiments of Input and Output
Your first C Program
• The Hello World Program
– Print the words hello, world
# include <stdio.h>
void main()
{
printf(“Hello World\n”);
}
# include <stdio.h>