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

Flashcards

C Programming

Miki Rana English 4.4Average rating 4.4 out of 5 (7 ratings) 23 cards

Cards in this deck (23)

  1. 1stdio.hContains input and output functions, types, and macro definitions. This library is used by most C programs and represents almost 1/3 of entire C libraries
  2. 2string.hContains functions for manipulating strings
  3. 3math.hContains mathematical functions
  4. 4stdlib.hContains utility functions for number conversion, storage allocation etc.
  5. 5Translating Stage of CompilationCompiler translates high-level language in .i file to low-level Assembly language instructions. Generated file is .s file
  6. 6Assembly Stage of CompilationAssembler converts assembly language to machine code. Generated object file contains conversion in binary and is .o file
  7. 7Linking Stage of CompilationLinker combines one or more binary object .o files into single executable file. Generated file is in binary and has .exe file
  8. 8VariablesA container in C which a data value can be stored inside the computer's memory
  9. 9charSingle byte storing 1 character
  10. 10intStores integer
    [100]
  11. 11floatStores floating-point to 6 decimal places
    [0.123456]
  12. 12doubleStores floating-point to 10 decimal places
    [0.0123456789]
  13. 13Declaring VariablesData type and variable name written, followed by ";"
    [ int car_number; ]
  14. 14Initialising VariablesWhen a value is assigned to a variable
    [ int car_number = 0; ]
  15. 15%dSpecifier for integers -32768 to +32767
    [6554]
  16. 16%fSpecifier for floating-point
    [2.1564]
  17. 17%cSpecifier for a character
    [M]
  18. 18%sSpecifier for a string of characters
    [Hello World]
  19. 19scanf()Requires 2 arguments in the brackets specifying type of data inputted and where to store it to
  20. 20long intUsually default of int and has range of values from -2,147,483,647 to +2,147,483,648
  21. 21short intSaves memory space and has range of values from -32,768 to +32,767
  22. 22Static VariableDefined outside function, can be used inside using "extern int [variable name];"
  23. 23CastingProcess of forcing a variable into a variable of a different data type
    variable2 = (modifier data-type) variable1;
    [ float2int = (int)num; ]

Information

Description
Notes on C language for Programming module of Comp Sci
Created by
Miki Rana
Views
495
Rating
Average rating 4.4 out of 5 (7 ratings)

Feedback

What is it about?

What do you think of the new look?

How do you like it?