Lech - 1
Lech - 1
Lecture 1: introduction
Omymah sarkez
Fall_2023
What is C?
• 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 a compiled language. when you write your C program, you must run it
through a C compiler to turn your program
print all of the C types with printf by Output: The temperature is 5 degrees
using different placeholders :
• int (integer values) uses %d p r i n t f ( " The t emp e r a t u r e i s %d d e g r e e s \ n " , b ) ;
• float (floating point values) uses %f Output: The temperature is 5 degrees
• char (single character values) uses %c
• character strings (arrays of p r i n t f ("%d + %d = %d \ n " , a , b , c ) ;