test 2 review

test 2 review - CSC 1253 - Review Exam 2 Short Answer:...

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

View Full Document Right Arrow Icon
CSC 1253 - Review Exam 2 Short Answer: Matching: (items may be used more than once) 1.___punctuation used to indicate a value parameter in a function header 2.___punctuation used to end a function header 3.___punctuation used to separate items in a parameter list 4.___punctuation used to indicate end of a function prototype a. & b. * c) nothing d) ; e) , 5. T F The function prototype and function call must agree in order,name, and type. 6. The following statements will: count =0; while (count <=3){ printf("%d",3*(count -1)); count = count + 1;} a), not compile b. compile, and produce no output c)print the values -3 0 3 d) print the following: -3 0 3 6 7. T F In the following code, the statement e=f is executed only when a is not greater than 4. if (a > 4) c = c +d; else a=b; e=f;
Background image of page 1

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

View Full DocumentRight Arrow Icon
Part 2 (scope) #include<stdio.h> void doit (int a, int *b); void doit2 (int *a,int b); int main (void) { int a, b; a=3 b=4; doit (a,&b); printf("after return from doit a= %d b= %d \n",a,b); } void doit (int a,int *b)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/01/2011 for the course CSC 1253 taught by Professor Staff during the Fall '08 term at LSU.

Page1 / 3

test 2 review - CSC 1253 - Review Exam 2 Short Answer:...

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

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