adplus-dvertising
frame-decoration

Question

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

a.

Redirects the output of date to file out f

b.

Displays the output of date on the screen

c.

Prints everything on the screen

d.

Prints the two messages on the screen

Posted under UNIX

Answer: (a).Redirects the output of date to file out f

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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...

Similar Questions

Discover Related MCQs

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?

Q. lint should be used

Q. Environment variables can be accessed by