Download
c language2 n.
Skip this Video
Loading SlideShow in 5 Seconds..
C language2 PowerPoint Presentation
Download Presentation
C language2

C language2

102 Views Download Presentation
Download Presentation

C language2

- - - - - - - - - - - - - - - - - - - - - - - - - - - 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