Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
variable x will read only two digit number because 2 is used with format specifier Let's say someone enter number 123456, the number stored in variable x will be 12 and all the rest will be ignored for value of y it's simple input after that you see %*f, whenever * sign is used with format specifier in scanf function it escapes/ignore that input, it will not ask for input. %5s means that only five characters word will be stored in variable text
24th Sep 2018, 7:40 PM
blACk sh4d0w
blACk sh4d0w - avatar