GoConqr has a new look! Let us know what you think.

Flashcards

Module 4: C Programming

Kyan Clay Embedded Systems Design ELE2303 English 24 cards

Cards in this deck (24)

  1. 1PreprocessorStrips everything that makes source file readable by humans (e.g. comments), and presents most basic code to the parser.
  2. 2ParserChecks that the code makes sense (lexical analysis) and determines actions that need to be taken.
  3. 3Code generatortranslates code into assembly language but doesn't assign physical addresses to hardware
  4. 4Variable syntaxData type - qualifier - name
  5. 5Variable exampleint long hello!
  6. 6floatFloating point (decimal)
  7. 7charliteral character (one character) - e.g. 'a' or '7' - stored as ASCII value
  8. 8#definePreprocessor directive - variable not stored in memory
  9. 9Increment "x"x++
  10. 10while loop that increases i until i=5int i=0
    while ( < 5)
    { printf("Heyo",i++);}
  11. 11continuecauses program to jump back to beginning of loop
  12. 12Multiply functionint Mult(int x, int y)
    { return (x*y); }
  13. 13Array containing 10, 20, 30int array[2] = {10, 20, 30};
  14. 14Why use data pointer?we sometimes want to deal with variable's addresses (rather than their values)
  15. 15what does pointer do?holds address of another variable
  16. 16pointer syntaxtype *ptrname
  17. 17Create pointer "pointer" to numberint *pointer
  18. 18initalize pointer "p" to address "x"p = &x;
  19. 19"&" symbol (pointer)address of
  20. 20access element "2" of array "array"array[2]
  21. 21access element "2" of array "array" using pointerp = &array[2]
  22. 22Set PORTC as outputTRISC = 0x00000000;
    LATC = 0b11111111;
  23. 23Function (definition)self-contained code segments that perform a specific task
  24. 24create function "Mult" with two integer variable "a" and "b"int Mult(int a, b)
    { }

Information

Description
ELE2303 Embedded Systems Design Flashcards on Module 4: C Programming, created by Kyan Clay on 09/03/2016.
Created by
Kyan Clay
Views
2
Rating

More on C Programming Basics

Feedback

What is it about?

What do you think of the new look?

How do you like it?