All mock tests are FREE till 31 December — register to save your progress
Unit 3 · Programming Concepts & Python HTET 2021 PGT Computer Science

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