Using a scan set : scanf scan set « printf scanf « C Tutorial






#include <stdio.h>

int main()
{ 
   char z[ 9 ]; 
   
   printf( "Enter string: " );
   scanf( "%[aeiou]", z );

   printf( "The input was \"%s\"\n", z );

   return 0;

}
Enter string: 3
The input was ""








4.30.scanf scan set
4.30.1.Using a scan set