Twise Random

A site about computer science .
Skip to content
  • apple
  • android
  • c
  • cpp
  • data structure and algorithms
  • macos
  • python
  • tutorials

Category: c

sizeof operator in c

Posted on August 26, 2021August 27, 2021 by mohamad wael

What is the sizeof operator?

The sizeof operator, returns the size of an expression, or of an object type in C. An expression is for example 1 + 2, an object is any region of memory, and a … Read More

c tutorial

Conversion and operations on the non arithmetic data types in C

Posted on December 29, 2020December 29, 2020 by mohamad wael

 

What are the different C data types ?

The C standard groups its available types , in two large categories : the object types , and the function types .

The object types , in C are :

Integer 
… Read More
c tutorial

What is widening , truncation , promotion , and conversion between , the different C , arithmetic data types ?

Posted on December 23, 2020December 23, 2020 by mohamad wael

 
The arithmetic data types in C , are the integer types , such as int or unsigned long , and the floating point types , such as float , or long double .

Conversion of the integer types

What

… Read More
c tutorial

What is char , signed char , unsigned char , and character literals in C ?

Posted on December 15, 2020December 21, 2020 by mohamad wael

 

What is char , unsigned char , and signed char ?

The char type in C , has a size of 1 byte . The size of a byte , as defined on a given machine , can be … Read More

c tutorial

What is a float , double , long double and a floating point literal in C ?

Posted on December 14, 2020February 25, 2021 by mohamad wael

 

What is float , double , long double ?

To store numbers in a computer , an algorithm must be used . The C standard does not specify the algorithm , or the encoding to be used , for … Read More

c floating point, literal, tutorial

What is an enum in C ?

Posted on December 13, 2020December 22, 2020 by mohamad wael

 
An enum in C is used to enumerate things . For example , to enumerate the days of the week , such as Monday , Tuesday or Wednesday , or to enumerate error codes , such as OK or … Read More

c enumeration constant, enumerator list, tutorial

What is an identifier in c ?

Posted on November 19, 2020November 19, 2020 by mohamad wael

What is an identifier ?

 
An identifier , is used to denote an object type in C . An object in C is a region of memory , used for data storage .

int x ; /*
x is 
… Read More
c c, identifier, name space, scope

The compilation process of a c source file

Posted on November 18, 2020March 23, 2021 by mohamad wael

Compiling a C source file , into an executable program , involves multiple steps . They are as follow :

Preparation of the source files

The first step in compiling a C source file , is the preparation of the … Read More

c as, cc, cpp, gcc, ld

What is a character , wide character , and multibyte character in c ?

Posted on November 15, 2020March 23, 2021 by mohamad wael

Characters

A char is a region of memory , formed of bits , large enough to hold any character of the basic execution character set . A char is the encoding , of the basic execution character set .

The … Read More

c c, character, multibyte character, wide cahracter

C : source , execution , basic , and extended character sets

Posted on November 14, 2020 by mohamad wael

 
There are two character sets in C . The first one is the source character set , which is the set of characters , in which a C source file , is written .

So the source character set … Read More

c basic character set, c, character set, execution character set, extended character set, source character set
  • 1
  • 2
  • »