-
git init
: This command initializes a new Git repository in the current directory. -
git add
: This command adds changes to the staging area. You can specify individual files or use.
to add all changes.git add <file name>
(for a specific file) orgit add .
(for all files). -
git commit
: This command commits changes to the repository. You can add a message with the-m
flag, like this:git commit -m "Commit message"
. -
git status
: This command shows the status of your repository, including which files have been modified and which are staged for commit. -
git log
: This command shows the commit history of the repository, including who made each commit, when, and the commit message.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
size_t
and int
are two different data types in C that are used for different purposes.
int
is a signed integer type that can represent both positive and negative values. It is commonly used for counting and arithmetic operations in C programs. However, the size of an int
can vary depending on the implementation and architecture of the system, and it is not guaranteed to be the same size on all systems.
size_t
is an unsigned integer type that is used to represent the size of an object or the result of the sizeof
operator. It is guaranteed to be large enough to represent the size of any object on the system, and it is defined to be the same size as unsigned long
on most systems. size_t
is commonly used for memory allocation and manipulation operations, where the size of objects is important.
The main difference between size_t
and int
is that size_t
is an unsigned type, meaning it can