ECE 209 Spring 2017 Exam 2 Solution.pdf

ECE 209 Spring 2017 Exam 2 Solution.pdf - ECE 209 Exam 2...

This preview shows 1 out of 3 pages.

ECE 209 Exam 2 - Spring 2017 A Name (print): Unityld (print) Exam 2 This is a closed book and closed notes test. You are not allowed to have anything on your desk other than pencil and this exam paper during the test; this includes calculators or electronic assistance of any kind especially smart/mobile phones. You may not leave to go to the restroom. Please go before the exam starts. You may not ask questions. If something is confusing, write a note beside the question and explain your assumptions. You must show all of your work on this exam. You will not be allowed to turn in additional sheets of paper. Read and sign the following statement. Failure to abide by these policies will result in a on the exam and will be treated as a violation of the NCSU Code of Student Conduct. I have neither given nor received unauthorized assistance on this test. I have notified the proctor of any violations of the above policies. Signature: Problem Score 1 /24 2 /20 3 /26 4 /30 Total 1100 Points are divided evenly across parts of a problem unless othenwise noted. 1 of 9
Image of page 1

Subscribe to view the full document.

ECE 209 Exam 2 - Spring 2017 A Name (print): Unityld (print) 1. (24 points) Complete each problem below as directed. You must use valid C syntax to earn full marks. A. (2 points) Declare an array with 100 elements and, in the declaration, initialize element at index=J0 to 100 and all others to 0. 1r LLc) { [soD o B. (2 points) Assuming variable sum has already been declared, write an expression to determine its address. C. (3 points) Write a prototype for a function zerolt, which can be used as follows: mt x=5; zerolt (&x) x is now equal to 0 */ D. (2 points) Declares a function that has an array as one of its parameters.
Image of page 2
Image of page 3
You've reached the end of this preview.
  • Spring '08
  • TUCK

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern