User Tools

Site Tools


c:stdio.h:getchar
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:stdio.h:getchar [2013/09/17 02:49]
2001:da8:208:125:88e8:be7a:5118:9d37 [output]
c:stdio.h:getchar [2015/01/30 21:01] (current)
129.7.106.171 [C Sourcecode Example] formatting
Line 21: Line 21:
  
 int main ( void ) { int main ( void ) {
-int chars; +   int chars; 
-printf("type in . to end your input : ");+   printf("type in . to end your input : ");
  
-while ((chars = getchar()) != '.' ){ +   while ((chars = getchar()) != '.' ){ 
-   putchar(chars);+      putchar(chars);
    }    }
-return 0;+   return 0;
 } }
 </code> </code>
advertising
c/stdio.h/getchar.txt · Last modified: 2015/01/30 21:01 by 129.7.106.171

Impressum