COMPENG 2SH4 Study Guide - Final Guide: Procedural Programming, Null Character, Function Prototype

137 views2 pages

Document Summary

Every c program contains main function where the program executes. Every variable has to be declared before being used. Max length of a variable is 31 characters. Conversion specifiers are used to tell the program what type of variable it is receiving. In general a declaration is also a definition assigns memory to the variable. Modules in programs that helps us improve coding by not repeating code. Function call when a function is used in the program. Function definition contains the code that the function executes. A function can manipulate and change any data passed into it. To prevent this use const to keep the parameter the same. Group of variables of the same type related by the same name. Array size cannot be a variable, has to be an integer. Strings are just an array of characters and can be looped through just like arrays. Each string has a null character \0" to signify the end of a string.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents