Horje
":" in struc c Code Example
":" in struc c
/* It's used to save some memery in a struct

It basically tells the compiler that 
"hey, this variable only needs to be x bits wide,
so pack the rest of the fields in accordingly, OK?" */

// Exemple
struct remain {
  int mod3 : 2; // int usualy takes 4 bits in memory but here it will be only 2
  int mod4 : 2;
  int mod5 : 3; // and here 3
};




C

Related
conio.h linux Code Example conio.h linux Code Example
how to find all the missing dates and increment the series in r Code Example how to find all the missing dates and increment the series in r Code Example
stack enqueue code Code Example stack enqueue code Code Example
ERROR: cannot verify nvidia.box.com's certificate, issued by 'CN=GeoTrust RSA CA 2018,OU=www. Code Example ERROR: cannot verify nvidia.box.com's certificate, issued by 'CN=GeoTrust RSA CA 2018,OU=www. Code Example
convert from integer to string vb Code Example convert from integer to string vb Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13