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

Dont ansi function prototypes render lint obsolete?

832


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

830


What is the use of header?

843


What are the parts of c program?

861


Sir i need notes for structure,functions,pointers in c language can you help me please

2180


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2824


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(); }

2079


Why enum is used in c?

710


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

944


What are the 4 data types?

783


What is dangling pointer in c?

823


List out few of the applications that make use of Multilinked Structures?

1770


how we can make 3d venturing graphics on outer interface

4395


What is the difference between Printf(..) and sprint(...) ?

1090


Hi can anyone tell what is a start up code?

1843