C Programming Part 1

  1. Keyword
    Reserved words that have a specific meaning in the language. Examples: int, return, if, while, and for
  2. Data Type
    Specifies the type of data that a variable can hold. Examples: int, float, char, double, and void
  3. Function
    A block of code designed to perform a specific task. Examples: main(), printf(), scanf(), and strlen()
  4. Escape Sequence
    A sequence of characters used to represent special characters. Examples: \n, \t, and \r
  5. Format Specifier
    Specifies the type of data to be used in various I/O operations. Examples: %d, %f, %c, and %s
  6. Variable
    A user-named storage location for storing data values. Examples: int pizza; float large;
  7. Constant
    An immutable value defined in the program. Examples: const int max = 100; #define PI 3.14159
  8. Operator
    Symbols that perform operations on variables and values. Examples: +, -, *, /, %, ==
  9. Loop
    A control structure that repeats a block of code. Example: for, while, do-while
  10. Conditional Statement (aka Selection Statement)
    Statements that perform different actions based on conditions. Examples: if, else, switch, and case
  11. Array
    A collection of elements identified by index or key. Examples: int arr[5]; char name [10];
  12. Pointer
    A variable that stores the memory address of another variable. Examples: int *p; char *str;
  13. Structure
    A user-defined data type containing multiple data types. Example: struct Student { int id; float grade; };
  14. Union
    A data structure that can hold different data types, but only one at a time. Example: union Data { int i; float f; char c; };
  15. Preprocessor Directive
    Instructions to the compiler before actual compilation. Examples: #include, #define, #ifdef, #ifndef
  16. Enumeration (enum)
    A user-defined data type that consists of integral constants Example: enum Days {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
  17. Type Casting (aka Type Casts)
    Converting one data type to another, explicitly. Examples: (int) 3.14, (float) 5
  18. Type definition (typedef)
    Defines a new name for an existing data type. Example: typedef unsigned char BYTE;
  19. Parameter
    Values passed into a function. Example: void greet(char name[], int age);
  20. Argument
    Actual values supplied to a function's parameters. Example: greet("Alice", 30);
Author
Studymode189
ID
364341
Card Set
C Programming Part 1
Description
Updated