Example - strona 3

note /search

Forcing conversions - examples

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

construction (type name) expression the expression is converted to the type name • Example: cels = ((double)5/9...

Pointers - overview

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

variables storing addresses: * • Example: int *pti; • Getting the address where a given...

String constants - overview

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

surrounded by double quotes • Example: "The first string" • String constants can be concatenated at compile...

The asterisk - overview

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

* • The value is computed by converting the next argument, which must be an int • Example: printf("%.*f...

System

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

System int system(const char *command);  Executes a command  Example (Windows, DOS): #include...

The scanf function

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

string  However, it can be used safely by specifying a width  For example, the format %20s will not...

Macro substitution

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

line  Example: #define MINT -60 #define MAXT 300 ... for (i = MINT; i