#include <stdio.h> int main( void ) { const char* s = ""; char a1[50]; int b1; int n1 = sscanf( s, "%12s=%d", a1, &b1 ); printf( "读入%d个值\na = %s\nb = %d\n\n", n1, a1, b1 ); char a2[50]; int b2; int n2 = sscanf( s, "%s=%d", a2, &b2 ); printf( "读入%d个值\na = %s\nb = %d\n\n", n2, a2, b2 ); return 0; }输出