Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

read from stdin c

#include <stdio.h>
int main( ) {

   char str[100];
   int i;

   printf( "Enter a value :");
   scanf("%s %d", str, &i);

   printf( "
You entered: %s %d ", str, i);

   return 0;
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #read #stdin
ADD COMMENT
Topic
Name
1+3 =