adplus-dvertising
frame-decoration

Question

Writing a C program that accepts input from keyboard, rather than from a file is advantageous because

a.

Keyboard is a file that is already open

b.

It can be used in a pipe, if it writes to stdout

c.

Both (a) and (b)

d.

None of the above

Posted under UNIX

Answer: (c).Both (a) and (b)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Writing a C program that accepts input from keyboard, rather than from a file is advantageous because

Similar Questions

Discover Related MCQs

Q. Which of the following string functions can be used to find the last occurrence of a given character in a given string?

Q. Consider the program:

main ( )
{
printf("He arose a victor from\n");
system ("date") ;
printf("the dark domain");
}

If a.out is the executable code corresponding to the above source code, then the command a.out > out f

Q. The default permission bits of a file when it is created for the first time, is controlled by

Q. Let x.c be a C source code. The command cc x.c > y

Q. A file x is created with the following contents

echo today is:
date

If you type x.then

Q. Shell script is preferable to other forms of programming because it

Q. Choose the incorrect statement.

Q. Files that store data in the same format as used in program are called

Q. To allow only one user to work with a particular file at a particular time, one has to use

Q. Which of the following remarks about realloc are true?

Q. The differences between malloc( ) and calloc() are:

Q. The file that stores an integer as a sequence of characters is a

Q. If cat x. prints garbage. then x is probably a

Q. Which of the following file names can be found in more than one directory?

Q. /bin

Q. Which of the following information is not present in an i-node ?

Q. The system identifies a file by its

Q. The system identifies the end of a file by the

Q. The command line argument a.out x 'a b' "c d"

Q. Which of the following metacharacters will be recognized by the shell, even if it comes within double quotes?