Professional Documents
Culture Documents
C Programming Language
Submitted To :
Mr. Charnjeet Singh
ECE Department
Submitted By : Manit
Language
year
Developed By
ALGOL
1960
International Group
BPCL
1967
Martin Richards
1970
Ken Thompson
Traditional C
1972
Dennis Ritchie
K&RC
1978
ANSI C
1989
ANSI Committee
ANSI/ISO C
1990
ISO Committee
C99
1999
Standardization
Committee
Hello C Language
scanf()
Data Types
enum
void
break case
char
const
double
else
enum
extern float
int
long
struct
continu default do
e
for
goto
signed sizeof
unsigned void
if
static
volatile while
If else-if ladder Statement: The if else-if statement is used to execute one code from multiple
conditions.
Syntax:
if(condition1){
//codetobeexecutedifcondition1istrue
}elseif(condition2){
//codetobeexecutedifcondition2istrue
}
elseif(condition3){
//codetobeexecutedifcondition3istrue
}
...
else{
//codetobeexecutedifalltheconditionsarefalse
}
Syntax
Call by value in C language:In call by value, value being passed to the function is locally
stored by the function parameter in stack memory location.
If you change the value of function parameter, it is
changed for the current function only. It will not change
the value of variable inside the caller method such as
main().
Array in C: Array
a
b
b
c
Pad
Moral:
a
b
b
c
Summary of C
Preprocessor
symbolic constants
inline-like functions
conditional compilation
file inclusion
Sources
of nondeterminsm