Question
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
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
View solution
Q. Let x.c be a C source code. The command cc x.c > y
View solution
Q. A file x is created with the following contents
echo today is:
date
If you type x.then
View solution
Q. Shell script is preferable to other forms of programming because it
View solution
Q. Choose the incorrect statement.
View solution
Q. Files that store data in the same format as used in program are called
View solution
Q. To allow only one user to work with a particular file at a particular time, one has to use
View solution
Q. Which of the following remarks about realloc are true?
View solution
Q. The differences between malloc( ) and calloc() are:
View solution
Q. The file that stores an integer as a sequence of characters is a
View solution
Q. If cat x. prints garbage. then x is probably a
View solution
Q. Which of the following file names can be found in more than one directory?
View solution
Q. /bin
View solution
Q. Which of the following information is not present in an i-node ?
View solution
Q. The system identifies a file by its
View solution
Q. The system identifies the end of a file by the
View solution
Q. The command line argument a.out x 'a b' "c d"
View solution
Q. Which of the following metacharacters will be recognized by the shell, even if it comes within double quotes?
View solution
Q. lint should be used
View solution
Q. Environment variables can be accessed by
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!