adplus-dvertising
frame-decoration

Question

Choose the correct statement.

a.

To read successive characters from an open file . getchar and scan f can be used interchangeably

b.

To read successive characters from an open file. getchar and read can be used interchangeably

c.

The read system call reads from the buffer

d.

None of the above

Posted under UNIX

Answer: (a).To read successive characters from an open file . getchar and scan f can be used interchangeably

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose the correct statement.

Similar Questions

Discover Related MCQs

Q. Which of the following is not the work of a C-preprocessor?

Q. getc (stdin)

Q. Which of the following initiates the sequence of events that ultimately allows a user to login?

Q. Which of the following file names cannot be displayed if la ls* is run?

Q. Which of the following displays the exit status of the last executed command?

Q. Which of the following options for the shell command test should be followed by the file descriptor?

Q. The state of signals are

Q. The disadvantage of a pipe is that

Q. Which of the following shell commands displays the contents of each of the command line arguments one by one

Q. The desirable features of a new shell script you write is that

Q. Shell script

Q. Which of the following shell script's looping features does not recognize the break command?

Q. The command cc x.c && a.out

Q. No shell script can take input from

Q. A C program should be compiled with -g option (like cc -g x . c) to use

Q. The command pwd displays /x/y. After executing the command chmod u -x. which of the following commands will not work?

Q. The header files used in C programs arc usually found in

Q. cat/dev/tty

Q. Choose the correct statements.

Q. Choose the correct answers if the command ls -l /dev/mt0 display's

brw_rw_ _ _ _ 1 root 3, 0 Apr18 1:05 mt0