






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the fundamental concepts of C programming, including variables, data types, constants, keywords, and program structure. Learn about the rules for naming variables, different data types, and the meaning of various keywords. Discover the basics of writing a C program with the help of examples.
Typology: High school final essays
1 / 12
This page cannot be seen from the preview
Don't miss anything!







Va r iable i s t he name of a memo ry loca t ion w hich st o r e s s ome da t a. 25 S a b Memo ry
R u le s a. Va r iable s a r e ca s e s en s i t i v e b. 1st cha r ac t e r i s alphabe t o r '_' c. no comma / blank s pace d. No o t he r sy mbol o t he r t han '_'
Val u e s t ha t don 't change ( fi x ed ) T y pe s In t ege r Con st an ts Cha r ac t e r Real Con st an ts Con st an **ts 1 , 2 , 3 , 0 , - 1 , - 2
32 Ke yw o r d s in C
Re s e rv ed w o r d s t ha t ha v e s pecial meaning t o t he compile r
#include<stdio.h> int main() { printf("Hello World"); return 0 ; }
Single Line M u l t iple Line Line s t ha t a r e no t pa rt of p r og r am // / /
p r in t f (" age i s % d ", age ); p r in t f (" v al u e of pi i s % f ", pi ); p r in t f (" st a r look s like t hi s % c ", st a r);
1. in t ege **rs
s canf (" % d ", & age );