MindMap Gallery C Program Language
This is a mind map talking about c program language. You can create a mind map like this effortlessly.
40k classes
Cisco IOS interface
application development and deployment
Data Sanitization Tools
DATA COLLECTION MEASURES
Android
Java Training
Active reading techniques
Classification of visual languages
Game Theory
C Program Language
Datatypes
A container or memory place to hold data-tems.
Built-in Type
Part of the language construct.
Integer
#include <stdio.h>#include <limits.h> int main(){ printf("Storage size for int : %d \n", sizeof(int)); return 0;}
Signed
int
16 bits
Ex:-32,768 to32,767
short int
8 bits
Ex:-128 to127
long int
32bits
Ex:-2,147,483,648 to 2,147,483,647
Unsigned
Ex:-2.147,483,648 to 2,147,483,647
8bits
Ex:-128 to 127
Ex:-32,768 to 32767
Float
#include <stdio.h>#include <float.h> int main(){ printf("Storage size for float : %d \n", sizeof(float)); printf("Minimum float positive value: %E\n", FLT_MIN ); printf("Maximum float positive value: %E\n", FLT_MAX ); printf("Precision value: %d\n", FLT_DIG ); return 0;}
long double
80bits
Ex: 3.4E-4932 to 1.1E+4932
float
32 bits
Character
Character may be an alphabet or a digit or a special symbol. Ex: 'a', '5', '%'
Signed char
Unsigned char
Ex: 0 to255
Char
Double
double
64bits
Ex: 1.7E-308 to 1.7 E+308
Derived Type
Derived from the existing datatypes.
Array
Funtions
Pointer
Reference
User Defined Types
Datatypes defined by the user.
Structure
Union
Enumeration
C- Tokens
Special Symbols (Delimeters)
;,!?#$
Constants & Variables
Numeric Constants
%d
decimal
Ex: -129, 78 etc
octal
Ex: 037, 5011 etc
hexadecimal
Ex: 0X2, 0XA3 etc
real
%f
Ex: -2.73, 0.71 etc
exponential
12e-2
-1.2E-1
Character Constants
Single
String
Keywords
Identifiers
May be varible or a function name or array varibale.
Strings
Operators
Operators operate on operands.
Arithmetic
Logical
Assignment
Conditional
Special
Increment / Decrement
Bitwise
Relational
Expressions
precedence
example
Conversions
automatic type
follows the hierarchy of size of the operands
casting a value
(type name)exp;
Mathematical Functions
#include<math.h> cc filename -lm
exp(x)
fabs(x)
sqrt(x)
Input/Output
Formatted
Input
scanf("control string", &arg1,&arg2..);
Output
printf("control string", arg1,arg2..);
Unformatted
putchar
putchar(variable_name);
getchar
Control Statements
if
simple if
if else
nested if else
else if ladder
swicth
switch(exp){ case value1:block1; break; case value2:block2; break; ..........default:block; break; } statement-x;
conditional
conditional exp? exp1:true exp2:false
goto
Loops
continue (skip)
for
for(initialize ; test exp ; increment) { body; }
while
while(test exp) { body; }
do.. while
do { body ; } while(test exp);
break (jump)
Arrays
Dimensions
Character Array (String)
Declaring / Initialising
Reading
Writing
Concatenation
Comparison
Copying
Substr and many more string functions are available...
Built in function in ctype.h
Functions
declaration
calling
types
definition
Recursion
Pointers
declaring
initialize
accessing
Structures / Unions
define a structure
initialization members
Files
Open
Close
Access
mode
History of C
ALGOL
BCPL
B
Traditional C
ANSI C
ANSI/ ISO C
Dennis Retchie
Few Other Links
Companies using C Programming Language
NPTEL Videos
NPTEL Slides
Virtal Lab
Spoken Tutorials