User Tools

Site Tools


cplusplus:c_examples

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cplusplus:c_examples [2019/05/06 15:34] mithatcplusplus:c_examples [2020/05/04 00:47] – [C Examples] mithat
Line 1: Line 1:
 ====== C Examples ====== ====== C Examples ======
-adapted from \\ +Derived from //**Differences Between C and C++**// by Robert Niemann \\
-**Differences Between C and C++** \\ +
-by Robert Niemann (Century College) \\+
 11/22/2015 11/22/2015
  
Line 26: Line 24:
  
 <file c example01.c> <file c example01.c>
-/* Basic scanf use. *+/* Basic scanf use. */
 #include <stdio.h> #include <stdio.h>
  
Line 112: Line 110:
 { {
     FILE *ptr_file;     FILE *ptr_file;
-    char buf[1000];+    char buf[1000];    /* can store strings up to 999 chars long */
  
     ptr_file = fopen("input.txt","r");     ptr_file = fopen("input.txt","r");
cplusplus/c_examples.txt · Last modified: 2020/12/07 02:40 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki