write a c programs to do multiplication of two numbers with
out using arithmatic operator ??????????

Answer Posted / vivekananda

#include<stdio.h>
void main()
{
int num = 2;
res = num << 1; //multiplication by 2
printf("%d\n",res);
}

Is This Answer Correct ?    24 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the different bitween abap and abap-hr?

1738


Is c object oriented?

535


How can you determine the size of an allocated portion of memory?

736


What is a dynamic array in c?

587


What is a constant?

626






What are examples of structures?

588


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

602


Are pointers really faster than arrays?

556


What is an array? What the different types of arrays in c?

652


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

805


What are the advantages of Macro over function?

1186


What does the message "automatic aggregate intialization is an ansi feature" mean?

689


What is a scope resolution operator in c?

745


What is c variable?

548


What are the types of type specifiers?

618