1 / 7

C language2

C language2. C data types. Qualifier . long - long int (4 bytes) short – short ing (2 bytes) signed – signed int = int unsigned –unsigned int =int (0-65535). Basic input/output function. Output printf (“format”,arg1,arg2,…) putch (char) puts (string) Input

liuz
Télécharger la présentation

C language2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C language2

  2. C data types

  3. Qualifier • long - long int (4 bytes) • short – short ing (2 bytes) • signed – signed int = int • unsigned –unsigned int =int (0-65535)

  4. Basic input/output function • Output • printf (“format”,arg1,arg2,…) • putch (char) • puts (string) • Input • scanf (“format”,&arg1,&arg2,..) • ch = getch () • gets (string);

  5. Printf (“The result is %f calculated by %f and %f \n, answer, width, height); • putch (a); // a – declared as a character • puts (s); // s – declare as a pointer of character

  6. Scanf (“Enter 3 input value %d%d%d”, &width, &length, &height); • ch = getch() ; // get one character • char *s; // declare s as a pointer of char • gets(s) ; // get string

More Related