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
Dont ansi function prototypes render lint obsolete?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is the use of header?
What are the parts of c program?
Sir i need notes for structure,functions,pointers in c language can you help me please
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
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 enum is used in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What are the 4 data types?
What is dangling pointer in c?
List out few of the applications that make use of Multilinked Structures?
how we can make 3d venturing graphics on outer interface
What is the difference between Printf(..) and sprint(...) ?
Hi can anyone tell what is a start up code?