C++ Language/Std/Strings/CastingNumericValues/StringToNumber

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The inverse of formatted-printing can cast from a C-string into a numeric variable: sscanf("11", "&d", &iVar);.

Additional information about casting from string to number (includes interactive examples)