ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2248)
 C++ interview questions  C++ Interview Questions (1106)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (644)
Question
write a c programs to do multiplication of two numbers with 
out using arithmatic operator ??????????
 Question Submitted By :: Somanatha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 1
#include<stdio.h>
void main()
{
int num = 2;
res = num << 1; //multiplication by 2
printf("%d\n",res);
}
 
Is This Answer Correct ?    23 Yes 36 No
Vivekananda
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 2
#include<stdio.h>
#include<conio.h>
void main()
{
int m,n,result=0;
printf("enter the value of m & n");
scanf("%d%d",&m,&n);
for(int i=1;i<=n;i++)
result=result+m;
printf("\n%d * %d =%d",m,n,result);
getch();
}
 
Is This Answer Correct ?    33 Yes 59 No
Vignesh1988i
 
 
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 3
#include<stdio.h>
int main()
{
int a=9,b=7;
int sum =0;
while(a--)
sum = sum+b;
printf("%d\n",sum);
}
 
Is This Answer Correct ?    12 Yes 32 No
Dally
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 4
#include<stdio.h>
#include<conio.h>
void main()
{int i, j ,num1,num2;
printf("enter the value of num1 & num2");
scanf("%d%d",&num1,&num2);
for(i=1; i<=num1; i++)
for(j=1;j<=num2;j++)
{static int k=1;
k++;
)printf("%d\n",k);}
 
Is This Answer Correct ?    10 Yes 17 No
Mugdha
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 5
#include<stdio.h>
#include<conio.h>
void main()
{
int m,n,result=0;
printf("enter the value of m & n");
scanf("%d%d",&m,&n);
for(int i=1;i<=n;i++)
result=result+m;
printf("\n%d * %d =%d",m,n,result);
getch();
}
 
Is This Answer Correct ?    6 Yes 19 No
Surajit
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 6
#include<stdio.h>
main()
{
int a,b,result;
print("Enter values of a and b :")
scanf{"%d %d",&a,&b};
result=0;
while(b!=0)
{
if(b&01)
resultresul+a;
a<<=1;
b>>=1;
}
}
 
Is This Answer Correct ?    3 Yes 12 No
Mohan0877
 
  Re: write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????
Answer
# 7
#include<stdio.h>
#include<conio.h>
void main()
{int i, j ,num1,num2;
printf("enter the value of num1 & num2");
scanf("%d%d",&num1,&num2);
for(i=1; i<=num1; i++)
for(j=1;j<=num2;j++)
{static int k=1;
k++;
)printf("%d\n",k);}
 
Is This Answer Correct ?    0 Yes 2 No
Vinay
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Please list all the unary and binary operators in C.   3
wt is diference between int and int pointer as same as float and float pointer and char and char pointer Infosys 8
Reverse the part of the number which is present from position i to j. Print the new number. eg: num=789876 i=2 j=5 778986   1
what type of language is C? Microsoft 8
write a program that will print %d in the output screen?? Infosys 7
what is the difference between entry control and exit control statement?   7
how to get starting address of a running C program   3
which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar() c)c=getchar(stdin) d)getc(&c) e)none   7
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST Adobe 6
what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (%d\n,j); } Oracle 14
whether itis a structured language? Microsoft 1
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know. TCS 7
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com