Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i want to run my code on the following by speed up this is C programming runtime on n=100000 faster than 10,000 milisecond include include

image text in transcribed
image text in transcribed
i want to run my code on the following by speed up this is C programming
runtime on n=100000
faster than 10,000 milisecond
include include include include include #define nDEFAULT 100 #define LEN 1000000 123456 /when compiled with -01 optimization / 10000 312.8 msec 1 100000, 40478.3 msec static unsigned int factorial[LEN), len; static void calcfactorial(unsigned int n) { unsigned int carry, i, ji len = factorial[e] = 1; for (i = 1; i @; i--) printf("X10", factorialli 2)); printf(" "); static void printFoctoris (void) { int i; for (i = len; i > 0; i--) printf("%1d", factoriali - 1)); printf(" "); + make changes before this block * Do NOT change anything in main() ***** */ int main(int argc, char *argv[]) { int c, n = nDEFAULT, debug = @; struct timeval te, t1; float elapsed; while ((c = getopt(arge, argv, "d:n:")) != -1) { switch (c) { case d': sscanf(optarg,"%d", &debug); break; case 'n': sscanf (optarg, "%d", &n); break; default: break; } } if (n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago