Example - strona 6

note /search

Structures - overview

  • Politechnika Śląska
  • Fundamentals of Computer Programming
Pobrań: 0
Wyświetleń: 476

a structure tag may follow the word struct • Access: struct-name.member • Example: struct point { int x; int y; }; ...

The switch statement

  • Politechnika Śląska
  • Fundamentals of Computer Programming
Pobrań: 0
Wyświetleń: 546

: statements default: statements } • Example: switch (c=getchar()) { case '0': printf("Zero"); break; case '1...

The ternary operator - overview

  • Politechnika Śląska
  • Fundamentals of Computer Programming
Pobrań: 0
Wyświetleń: 364

• Only one of expr2 and expr3 is evaluated • Example: z = (a > b) ? a : b; /* z = max(a, b) */ ...

Fork

  • Politechnika Śląska
  • Fundamentals of Computer Programming
Pobrań: 0
Wyświetleń: 595

Fork  UNIX #include #include pid_t fork(void);  Example int fork_return...

Other Preprocessor Commands

  • Politechnika Śląska
  • Fundamentals of Computer Programming
Pobrań: 0
Wyświetleń: 504

message  Example #ifdef OS_MSDOS #include #elifdef OS_UNIX #include "default.h" #else #error...