Question
Easy
In C file handling equivalent to scanf("%d",&val); is:
1
fscanf(stdin, "%d",&val);
2
fprintf(stdout, "value=%d\n", val)
3
scanf(value)
4
scanf()
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Python Programming Fundamentals
Topic: Input/Output & Debugging
Correct Answer
Option A
Explanation
The correct option is (1): The fundamental difference between the standard console I/O functions and the file I/O functions in C is that the file functions require an explicit stream pointer. The scanf() function is, in fact, a specialized version of the file input function fscanf(). While scanf("%d",&val); is used to read formatted input from the console, its true equivalent in the file-handling family is fscanf(stdin, "%d",&val);. Here, stdin is…Read More
Similar Questions from HTET Exam - Level 3 - Year 2021
Question 1
Easy
Source :
HTET 2021
You can use _______ to copy selected text and _______ to paste it into a document.
Chapter :
Operating Systems & Software Concepts
Topic :
MS Window
Question 2
Easy
Source :
HTET 2021
The basic architecture of computers was developed by:
Chapter :
Computer System & Hardware Fundamentals
Topic :
Computer System
Question 3
Easy
Source :
HTET 2021
Specialized programs that assist users in locating information on the Web are called...........
Chapter :
Computer Networks & Internet
Topic :
Internet Fundamentals
Question 4
Easy
Source :
HTET 2021
The protocol which provides e-mail facility is:
Chapter :
Computer Networks & Internet
Topic :
Internet Protocols