-
Ziele
- Identify the advanced uses for pointers.
- Explore the collection of special bitwise operators.
- Identify the features of standard Input/Output (I/O) with ANSI C.
- Debug programs.
- Perform error handling.
- Perform advanced but-level operations.
- Perform I/O functions from within a C program.
- Identify the features of file I/O.
- Debug C programs.
- Handle errors within code.
-
Anforderungen
Application developers, software engineers, and programmer/analysts are some of the types of people who will benefit from taking this course. Personnel expecting to design and implement new or maintain existing systems and applications in a corporate environment. People who learned C in college, but have not used it in a couple of years and need to retrain. Individuals who are skilled in another structured programming language (Pascal, FORTRAN, COBOL, etc.) and now need to learn C, possibly as a prerequisite to C++, and those who are experienced in the general process of application development. In addition, students should have taken the first two parts of this series (courses 13201 and 13202) prior to taking this course.
-
Titel
Kurs 13203 - C Programming - Part 3
-
Inhalt
Course Overview
This course is the third in a four-part series that will give students the fundamental skills and knowledge necessary to be able to write syntactically correct C code, using the facilities of a standard ANSI C library, to create basic applications. This series is not environment or vendor-specific. This course begins to introduce some more advanced topics. Students will learn about some of the more advanced uses for pointers, explore the collection of special bitwise operators, learn about Input/Output (I/O) with ANSI C, and learn how to properly debug their programs and perform error handling.
Deployment Options
Self-Study
Accreditation
CEU credits: 0.70 CEUs
Objectives
Unit 1: Pointer Management 1 - 2 hours
- Match the expressions to access the elements of an array of pointers with their outputs.
- Match the arithmetic expressions involving an array of pointers with their outputs.
- Identify the code to pass an array of pointers to a function in a specified situation.
- Identify the correct code to allocate memory to a structure pointer.
- Identify the code to access the members of a structure by using a structure pointer.
- Identify the code to pass a structure pointer to a function in a specified situation.
- Write the code to allocate memory to a pointer member of a structure.
- Identify the code to implement a pointer to a pointer.
- Identify the code to implement a pointer to a function in a specified situation.
Unit 2: Bit Manipulation 1 - 2 hours
- Identify the decimal equivalent of a given binary number.
- Complete the code to declare a bit field in a structure, for the given scenario.
- Identify the result of the expressions that use bitwise logical operators, given the values of the variables used in an expression.
- Identify the output of the expressions that use bitwise shift operators, given the values of the variables used in an expression.
- Identify the option that lists the one's and two's complement of a given binary number.
Unit 3: Advanced Input/Output 2 hours
- Identify the output of the code that uses formatted I/O functions to perform standard I/O.
- Identify the advantages of stream-oriented files.
- Identify the mode for opening a file in the specified situation.
- Identify the correct code to open a file in a specified mode.
- Identify the output of code used for reading a file.
- Identify the contents that will be stored in a disk file, on executing specified code.
- Identify the offset position of a file pointer in bytes after a set of statements are executed.
- Complete the code to move a file.
- Identify the code to perform I/O operations from standard devices by using disk file I/O functions.
- Enter the command line statement to execute the C program.
- Identify the code used to display the value of environment variables.
- Identify the advantages of using system calls in a C program.
- Identify the situation in which a specified type of interrupt is generated.
Unit 4: Debugging and Error Handling 2 hours
- Identify the correct preprocessor command to display an error message in a given situation.
- Identify the correct assertion code in a given situation.
- Identify the correct code to report an error in a program by using the perror function.
- Match debugging strategies with their functions.
- Match different debugging tools with their functions.
- Debug commonly occurring mistakes after identifying mistakes in a given code.
Course Access
Each student has access to the course for a period of 6 months from the day of enrollment in the course.