We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It is used to skip any leading whitespace characters (such as spaces, tabs, or newline characters) in the input before attempting to read the specified data. Including a space before the format specifier in scanf helps in ignoring any leading whitespace in the input.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Playing With Characters
You are viewing a single comment's thread. Return to all comments →
It is used to skip any leading whitespace characters (such as spaces, tabs, or newline characters) in the input before attempting to read the specified data. Including a space before the format specifier in scanf helps in ignoring any leading whitespace in the input.