Applications of C
Imperative Language
Procedural
Object-oriented
Declarative Languages
Focus on what the program should compute rather than how it should compute it
Functional Languages(LSH)
Lisp, Scheme, Haskell
Dataflow Languages(VLT)
VHDL, Linda, TensorFlow
Logic/Constraint-Based
Prolog
Markup Languages
HTML, Markdown
How we got to C?
What’s C(transitions)
C Strengths
C Weaknesses
Software Tools
The Common Platform(NCSU)
Commands for reference
Files on Computer to NCSU Shared Drive(sftp)
Terminal to Remote Linux Server(ssh)
NCSU Drive Shared Files to Computer on Campus/NCSU Remote Linux(smb)
Sample C Program
https://docs.google.com/document/d/1ps52mAqU6IepM0jTIRxM1uVtIvR0R8spKT6Xy_XXDUY/edit?usp=sharing
GCC commands to Compile and Execute
gcc -Wall -std=c99 hello.c -o hello
./hello
https://docs.google.com/document/d/1ps52mAqU6IepM0jTIRxM1uVtIvR0R8spKT6Xy_XXDUY/edit?usp=sharing
Variable Declarations in C
C you already know: C operations, flow of control loops, file scope(in the doc)
https://docs.google.com/document/d/1ps52mAqU6IepM0jTIRxM1uVtIvR0R8spKT6Xy_XXDUY/edit?usp=sharing
Variable Initializations in C
C doesn’t force you to initialize your local variables and it doesn’t initialize them for you.