Please enable JavaScript.
Coggle requires JavaScript to display documents.
❤C Programming❤ - Coggle Diagram
❤C Programming❤
"History"
-
C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to construct utilities running on Unix.
-
-
"C Tokens"
-
-
-
-
'Constants & Variables'
-
Character Constants
Single
%c
ASCII Values => pf("%d",'a');
printf("%c",97);
-
-
-
-
"Datatypes"
-
-
'Built-In Type'
Integer
Signed
-
-
long int
32bits
Ex:-2,147,483,648 to 2,147,483,647
Unsigned
long int
32bits
Ex:-2.147,483,648 to 2,147,483,647
-
-
-
-
-
"Files"
'Open'
FILE *fp; fp=fopen("filename","mode");
-
-
-
'Access'
-
-
moving
fseek(fp,offset,position)
'Output'
fprintf(fp,"control string",list);
fscanf(fp,"control string",list);
"Arrays"
'Dimensions'
-
Two
-
Initialization
type name[row_size] [col_size]={{row
list},{col list}};
Multi
-
Initialization
type name[s1][s2][s3]...[s3]={{list s1},{list
s2}, {list s3}, {list s4}.....{list sn}};
-