Question
main()
{
close(1);
print("How R U?");
}
a.
is syntactically incorrect
b.
results in a run-time error
c.
will wait indefinitely, if executed
d.
none of the above
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. The following program: main() { close(1); print("How R U?"); }
Similar Questions
Discover Related MCQs
Q. If lex .1 is a lex code then
View solution
Q. The read in the previous question is a
View solution
Q. The number of errors in the following shell script:
echo How are you?
read $answer
is
View solution
Q. lex can be used for
View solution
Q. Which of the following programs are not interactive?
View solution
Q. Which of the following remarks about lex are true?
View solution
Q. lint can analyze the named source code for
View solution
Q. Which of the following tools can be used to keep track of evolving versions of a file
View solution
Q. The shell command :
View solution
Q. Profilers are
View solution
Q. If one exports a variable
View solution
Q. If the command cat x is executed after successfully executing the command time sort filename > x, then
View solution
Q. The command who sort - file1 > file2
View solution
Q. Choose the correct statement.
View solution
Q. Redirection in pipes can be achieved by using
View solution
Q. Which of the following are not filter programs?
View solution
Q. The main reasons for the success of pipes are
View solution
Q. Which of the following is used for creating user’s environment?
View solution
Q. Which command is used for acquiring superuser status?
View solution
Q. The PATH for superuser doesn’t include current directory.
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!