<PREV> <INDEX> <NEXT>

Programming Language Structure


General C
Syntax:
  • words, statements
                (action/description)
  • separators, block delimiters
  • keywords
  • comments
  • external
  • labels
int i=2;

; {statements ...}
double, else, while
//   /* ... */
#define  AAA  66
Variables:
  • names, pointer
  • array
  • types, context defined,
    objects
  • atributes
a21, sdfj, &r34, *aa
sd[3]
int, double, char, void,
struct{...}
extern, register, static
Operations:
  • assignment
  • arithmetic, bit level
    precedence
  • string, regex
  • input/output
  • user/library defined
=
+   -   /   *   ++    +=
(( ))
atoi, strcat
printf, fprintf, scanf
sin(double x)
Flow Control:
  • conditional/looping
  • functions/subroutines
  • goto/label
  • end program
if...else, do...while, for
name(input){statements}

exit(status)
Special:
  • shell commands
  • dynamic memory allocation
system(command)
malloc, free



<PREV> <INDEX> <NEXT>