write a C program, given number is double without using addt
ion and multiplication operator?ex:n=6,ans=12,pls send me ans
to goviseenu@gmail.com
Answer Posted / vadivelt
Do shift the given number left once.
ie., n<<1
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Why is event driven programming or procedural programming, better within specific scenario?
What does c mean in standard form?
What is a nested formula?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
Differentiate between #include<...> and #include '...'
How can I read in an object file and jump to locations in it?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain indirection?
Is c is a procedural language?
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!+....
When is the “void” keyword used in a function?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is double pointer in c?
How to define structures? ·