C | Input and Output | Question 13 Read Discuss Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Predict the output of following program? #include "stdio.h" int main() { char arr[100]; printf("%d", scanf("%s", arr)); /* Suppose that input value given for above scanf is "GeeksQuiz" */ return 1; } (A) 9 (B) 1 (C) 10 (D) 100 Answer: (B) Explanation: In C, scanf returns the no. of inputs it has successfully read. See https://www.geeksforgeeks.org/archives/674 Quiz of this Question Thank You for reading the Post ! Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now! Last Updated : 28 Jun, 2021 Like Article Save Article Previous C | Pointer Basics | Question 16 Next C | Input and Output | Question 2 Please Login to comment...