Page 1 of 7
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 1
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking
this exam.
page 1
Searching & Sorting
Searching
If you need to find the location of a particular value in an array, you generally must compare each value
in the array with the "target" in a sequential fashion un
Non-object Extensions in C+
1. End of line comments (/)
In addition to the C comment delimiters of /* and */, C+ provides for starting a comment with /
The rest of the line will then be treated as a c
ECE 3331
Pointer
Pointers as Arguments to Function
Real World Application:
Reversing A String in Place
Pointers and Multidimensional Arrays
Pointers as Arguments to Function
void f( int p );
main( ) c
Conversion Code g for Output
The g (or G) conversion code may be used to perform signed, decimal floating point (float or double) conversion as an
alternative to the f or e. The basic idea with the g
C Sequence Points
Between consecutive sequence points, an objects value can be modified only once by
an expression. The C language defines the following sequence points:
Left operand of the logical-an
The FORMAT statement
We can obtain greater control over the conversion and formatting of
input/output items by replacing the asterisk in a READ or PRINT statement by the
label of a FORMAT statement, f
ECE 3331
Character Strings as Arrays of Characters
Array as Function Arguments
String-Handling Functions
Real World Application: Computing A Strings Length
Pointers
Pointer variablesECE 3331
Definitio
ECE 3331
Chapter 10
Structures, Unions, and Enumerated
Types
1
ECE 3331
Structures
Built in data types: int, char, float, double
Array: groups variables of same data type
Structures: groups variables
C+
A.
History of C and C+
1.
C Programming language was developed from 1969-1973 at Bell labs, along with the
UNIX operating system.
2,
C was a direct descendant of the language B, which was a typeles
page1of
Signature:_
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ELEE 3331 FINAL EXAM Fall 1997
I.Indicate the output that would be produced by each of the following. Consider each case
ECE 3331
Finished Pointer
Storage Class
Type Qualifier
ECE 3331
float table[2][3]=cfw_1.1,1.2,1.3,cfw_2.1,2.2,2.3;
1. whats the meaning of table
2. whats the meaning of (table+1)
3. whats the meaning
Missed Exams
If you miss taking an exam, you will receive a zero on the exam unless you do the following:
1. Immediately - as soon as possible but no later than 48 hours after the scheduled exam notif
ECE 3331
Introduction
Integer/floating number
Characters
A First C Program
Real World Application: Computing Distances
Identifiers
ECE 3331
Algorithm, syntax, semantics
Instructions
Variable = express
page 1 of 8
Solution
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 2
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking t
Page 1 of 9
SOLUTION
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking
thi
ELEE 3331 SAMPLE QUIZ 1
I.Indicate whether each of the following is true or false by circling your
choice:
A. The step that converts a C source code into object code is called
execution.
TRUE
FALSE
B.
page 1 of 10
SOLUTION
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 1
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking
Page 1 of 7
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 1
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking
this exam.
page 1 of 8
Solution
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 2
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking t
Page 1 of 9
SOLUTION
DO NOT OPEN THIS BOOKLET UNTIL YOU ARE INSTRUCTED TO DO SO
ECE 3331 - Exam 2
I agree to abide by the provisions of the University of Houston Academic Honesty Policy while taking
t
ECE 3331, Summer-3, HW 3, Due 6/16
Problem 1.
Chapter 3.3, Exercises 3, 5, and 11.
Problem 2.
Section 3.4, Exercise 1.
Problem 3.
Section 3.5, Exercise1.
Problem 4.
Section 3.6, Exercise 3.
Problem 5.
ECE 3331, Dr. Hebert, Summer-3 HW 5,
Hardcopy HW due in class on Thursday 6/23
Program due to Blackboard on Sunday 6/26
Problem 1. Section 5.1, Exercises 15.
Problem 2. Section 5.1, Exercise 19.
Probl
ECE 3331, Summer-3, HW 2,
Hardcopy HW Due 6/14
Program due on Blackboard on Sunday 6/12
Problem 1.
Section 2.4, Exercise 1.
Problem 2.
Section 2.4, Exercise 3.
Problem 3.
Section 2.5, Exercise 1.
Prob
ECE 3331, Summer-3, HW 04
Program due Tues 06/21/16
Hardcopy due Tues 06/21/16
Problem 1.
Section 4.1, Exercises 1 and 5.
Problem 2.
Section 4.3, Exercises 1 and 5.
Problem 3.
Section 4.5, Exercise 1.
ECE 3331, Dr. Hebert, Fall 2015 Homework 1, Due 9/1
Problem 1.
Section 1.1, Exercise 1.
Problem 2.
Section 1.1, Exercise 3.
Problem 3.
Section 1.3, Exercise 8.
Problem 4.
Section 1.3, Exercise 11.
Pro
ECE 3331, Dr. Hebert, Sum 2016 Homework 1, Due 6/9
Problem 1.
Section 1.1, Exercise 1.
Problem 2.
Section 1.1, Exercise 3.
Problem 3.
Section 1.2, Exercise 2.
Problem 4.
Section 1.3, Exercise 1.
Probl
MATRIX MULTIPLICATION WITH DYNAMIC ALLOCATION
#include <stdio.h>
#include <stdlib.h>
typedef double* Matrix; /* hide the double* data type */
void
store( char* file, Matrix m1, Matrix m2, int n ),
mul