Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Introduction to Programming in C: Writing Your First Program with Vim and GCC

Rating
-
Sold
-
Pages
2
Uploaded on
21-09-2024
Written in
2024/2025

The document is a set of lecture notes titled "Introduction to Programming in C: Writing Your First Program", which outlines the process of writing and running a basic C program. It covers fundamental concepts such as creating and editing a file (hello.c) using the Vim text editor, compiling the program with the gcc compiler, and handling errors. The notes explain the structure of a simple C program, including the use of the printf function for output, the significance of the main() function, and key commands to navigate and save files in Vim. It is a practical guide for beginners starting with C programming.

Show more Read less
Institution
Course

Content preview

Coconote AI notes Export note Try for free



Introduction to Programming in C
Sep 8, 2024


C Programming Tutorial 3 - Writing Our First Program - H…
H…
Teilen




Ansehen auf




Lecture Notes: Writing Your First Computer Program
Introduction to the Video
Host: Caleb from Caleb the Video Maker 2
Objective: Write the first computer program

Clearing the Shell
Command: `clear`
Used to clear the terminal screen

Creating a New File
File Name: `hello.c`
`.c` denotes a C programming language file



Using Vim Text Editor
Insert Mode
Enter: Press `i`
Exit: Press `Esc`
Navigating in Vim
Use arrow keys in insert mode
More navigation tricks will be covered in future videos

Writing the First Program
Code Structure
Include Standard IO Library:

#include <stdio.h>



Main Function:

int main() {
// Code goes here
}



Print Statement:

printf("Hello world!\n");



`\n` is a newline character

Return Statement:

Written for

Institution
Secondary school
Course
School year
1

Document information

Uploaded on
September 21, 2024
Number of pages
2
Written in
2024/2025
Type
Class notes
Professor(s)
Caleb curry
Contains
All classes

Subjects

$9.09
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
kavyas

Get to know the seller

Seller avatar
kavyas jain deemed to be university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions