Why is c faster?
No Answer is Posted For this Question
Be the First to Post Answer
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }
to convert a string without using decrement operater and string functions
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is wrong with this program statement? void = 10;
What do you mean by c?
Can you please compare array with pointer?
How can you check to see whether a symbol is defined?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
5. distance conversion: Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;