User Tools

Site Tools


c:stdio.h:scanf

Differences

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

Link to this comparison view

c:stdio.h:scanf [2014/05/17 23:11]
177.33.172.137 [C Sourcecode Example]
c:stdio.h:scanf [2024/02/16 01:05] (current)
Line 24: Line 24:
   char input[20];   char input[20];
  
-  printf ("Enter some Text (max 21 chars) "); +  printf ("Enter some Text (max 20 chars) "); 
-  scanf ("%s",&input);  +  scanf ("%s",input);  
   printf ("Scanf input was %s.\n",input);   printf ("Scanf input was %s.\n",input);
      
Line 34: Line 34:
 ==== output ==== ==== output ====
     output: ./scanf      output: ./scanf 
-    Enter some Text (max 21 chars) Hello this is a test for scanf    +    Enter some Text (max 20 chars) Hello this is a test for scanf    
     Scanf input was Hello.     Scanf input was Hello.
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/stdio.h/scanf.txt · Last modified: 2024/02/16 01:05 (external edit)

Impressum Datenschutz