Hi this program accepts the string from the input. I cannot understand the highlighted format specifier. Please help me understand.
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char str[15];
scanf("[B]%[^\n][/B]",str);
str[0]=toupper(str[0]);
str[15]='\0';
printf("%s",str);
putchar(123);
getch();
return 0;
}