Skip to content

Commit a7c576d

Browse files
author
Shaon
committed
Root Readme file and gitignore file updated
1 parent 88ffb7e commit a7c576d

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*
2+
!*.md
3+
!/*.md
4+
!/*.c
5+
!*.png
6+
!/*.png

README.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
1-
#Intro
1+
#Introduction
22

3+
**You need to have basic understanding of the C programming language to proceed with the codes from this repository.**
34

4-
### Primitive types or data structures in C
5-
Integer, Float, Boolean, Char
5+
###Primitive types and built-in data structures in C
6+
C is a statically typed language. Each of the variables should be type casted.
7+
There are five basic data types associated with variables:
8+
- int - integer: a whole number.
9+
- float - floating point value: i.e. a number with a fractional part.
10+
- double - a double-precision floating point value.
11+
- char - a single character.
12+
- void - valueless special purpose type.
13+
14+
Other than these there are some derived data types. they are -
15+
- Arrays
16+
- Pointers
17+
- Structures
18+
- Enumeration
19+
20+
#####More details about data types in C:
21+
- [C data types - Tutorialspoint](https://www.tutorialspoint.com/cprogramming/c_data_types.htm)
22+
- [C programming data types - programiz](http://www.programiz.com/c-programming/c-data-types)
23+
24+
###How to Use
25+
To test or use codes from this repository you can use any popular IDE, online Editor or compile them locally using GCC compiler.
26+
Following links will help on how to compile a C code in linux.
27+
- http://www.akira.ruc.dk/~keld/teaching/CAN_e14/Readings/How%20to%20Compile%20and%20Run%20a%20C%20Program%20on%20Ubuntu%20Linux.pdf
28+
- http://www.cyberciti.biz/faq/howto-compile-and-run-c-cplusplus-code-in-linux/
29+
30+
######TL;DR
31+
Run following command to compile a C code (You need to have [gcc compiler](https://help.ubuntu.com/community/InstallingCompilers) installed):
32+
33+
`gcc file_name.c -o file_name`
34+
35+
you will get an executable named: `file-name`
36+
37+
run it using:
38+
39+
`./file_name`

0 commit comments

Comments
 (0)