chtp5_14-TIF-Beta - 14.1Introduction 14.2RedirectingInput/...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
14.2  Redirecting Input/Output on UNIX and DOS Systems 14.1 A pipe ( | ) causes (a) the output of the first program to be redirected to the input of the second (b) the output of the second program to be redirected to the input of the first (c) the input of the first program to be redirected to the input of the second (d) the input of the second program to be redirected to the input of the first ANS: (a) 14.2 Which of the following symbols is not used in UNIX for redirecting input or output? (a) < (b) | (c) $ (d) >> ANS: (c) 14.3  Variable-Length Argument Lists 14.3 Which of the following function prototypes is correct? (a) double average( int, . .. ) (b) double average( . .., int ); (c) double average( int, . .. ); (d) double average( int, . .. , int); ANS: (c) 14.4 What macro expands to an expression of the value and type of the next argument in a variable-length argument list? (a) Va_end (b) Va_start (c) Va_list (d) Va_arg ANS: (d) 14.4  Using Command-Line Arguments 14.5 How many arguments can be passed to main from the command line? (a)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2011 for the course C PROGRAMM ES 112 taught by Professor Serdar during the Spring '11 term at Yeditepe Üniversitesi.

Page1 / 5

chtp5_14-TIF-Beta - 14.1Introduction 14.2RedirectingInput/...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online