Format specifier scanset for scanf() function in C

Scanset is used to define a set of characters and it inputs them. Characters that are read are put in the character array which is pointed to by scanset’s arguments.

For example: % [AB} scanset informs scanf() to read only characters A and B.Scanset is case sensitive. If you want to put lowercase and uppercase characters then you have to put them in individual scansets.

Leave a Reply