In C file handling equivalent to scanf("%d",&val); is :
C फाइल हैंडलिंग में scanf("%d",&val); के तुल्य है :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. fscanf(stdin, "%d",&val);
Explanation
scanf reads from standard input, so it equals fscanf(stdin, "%d", &val).
scanf मानक इनपुट से पढ़ता है, अतः यह fscanf(stdin, "%d", &val) के बराबर है।
More Programming Concepts & Python questions
- A variable declared within the block {} has the following scope :
- What is a copy constructor ?
- In the given declaration of an array : float height[50];
- The functions 'cin' and 'cout' resolve the necessary conversions at :
- In C++, << operator used for shifting bits can also be used for :
- Which of the following is the scope resolution operator in C++ language ?