answersLogoWhite

0

Why do need documents?

User Avatar

Anonymous

14y ago
Updated: 12/23/2021

The best way I can explain this is to give you an example of code with no documentation. If there was documentation, you would be able to tell what this code did in a matter of seconds. Without it you could waste many minutes, or even hours, trying to understand it.

inline unsigned char f_1(const unsigned char *ptr, const unsigned int i) {

const div_t d = div(i, 8);

return (ptr[d.quot] & (1 << d.rem))?1:0;

}

inline void f_2(unsigned char *ptr, const unsigned int i) {

const div_t d = div(i, 8);

ptr += d.quot;

*ptr = *ptr | (1 << d.rem);

}

inline void f_3(unsigned char *ptr, const unsigned int i) {

const div_t d = div(i, 8);

const unsigned char n = 1 << d.rem;

ptr += d.quot;

*ptr = ((*ptr | n ) ^ n);

}

void f(const unsigned int n) {

const unsigned int m = n + (n%8==0?0:8-n%8);

const unsigned int n = m / 8;

const unsigned int m_2 = m / 2;

unsigned int i, j;

unsigned char *a = malloc(sizeof(unsigned char) * n);

memset(a, 0xaa, n);

f_3(a, 1);

f_2(a, 2);

for( i = 3; i < m_2; i+=2 ) {

while(i < m_2 && !f_1(a, i))

i+=2;

for( j = i + i; j < m; j+=i )

f_3(a, j);

}

free(a);

}

User Avatar

Maude Kulas

Lvl 13
4y ago

What else can I help you with?

Related Questions

How do I know if there is a pre-payment penalty clause on my mortgage?

You need to read all the documents you signed at the closing.You need to read all the documents you signed at the closing.You need to read all the documents you signed at the closing.You need to read all the documents you signed at the closing.


When a contract has limitations on 5 years binding and another paper says 10 years which is binding?

Your documents need to be reviewed by a professional who can determine which is binding.Your documents need to be reviewed by a professional who can determine which is binding.Your documents need to be reviewed by a professional who can determine which is binding.Your documents need to be reviewed by a professional who can determine which is binding.


If a grant is available where do I apply and what documents do I need?

If a grant is available where do I apply and what documents do I need


What documents do you need for a child?

what documents do you need for a 15 year old child to go through security? staying in the usa


Tips for creating academic documents?

I need different tips for creating Academic documents


Can you drop hazard insurance from your mortgage?

You need to review your mortgage documents. You signed a contract and you need to determine what the terms are regarding insuring the premises.You need to review your mortgage documents. You signed a contract and you need to determine what the terms are regarding insuring the premises.You need to review your mortgage documents. You signed a contract and you need to determine what the terms are regarding insuring the premises.You need to review your mortgage documents. You signed a contract and you need to determine what the terms are regarding insuring the premises.


What travel documents are required to travel by train in Switzerland?

You do not need any special documents to travel by train in Switzerland. You do need a ticket of course!


How do you access Documents from Jackson hewitt?

how do I get copy of my 2020 documents?


Do child custody documents need to be notarized?

In some jurisdictions, child custody documents may need to be notarized to be considered legally valid and enforceable. It is important to check the specific requirements of the jurisdiction where the documents will be filed.


What documents would someone need to have with them when applying for a business loan?

People that apply for business loans will need to bring documents. The documents brought should regard the business, including tax returns, assets and debts.


Do trust documents need a list of assets?

No.


What documents should I bring when I see an army recruiter?

The initial meeting is informational, so you don't really need any official documents. The recruiter will advise you as to the documents you will need if you choose to pursue enlistment. You will need a photo i.d. and an official copy of your birth certificate. Other documents may be required, depending on your particular circumstances.