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 (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
Question
write a c programs to do multiplication of two numbers with 
out using arithmatic operator ??????????
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
#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 ?    1 Yes 2 No
Vinay
 
Answer
# 2
#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 ?    11 Yes 17 No
Mugdha
 
 
 
Answer
# 3
#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
 
Answer
# 4
#include<stdio.h>
void main()
{
int num = 2;
res = num << 1; //multiplication by 2
printf("%d\n",res);
}
 
Is This Answer Correct ?    24 Yes 36 No
Vivekananda
 
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
 
Answer
# 6
#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
 
Answer
# 7
#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 ?    34 Yes 59 No
Vignesh1988i
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Function to find the given number is a power of 2 or not? Motorola 20
12344321 123 321 12 21 1 1 how i print this program?? DSR-Management 2
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a BitWise 2
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????   8
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod() Accenture 2
how do we remove the printed character in printf statement and write next it it   1
What is encapsulation?   2
Why doesn't C have nested functions?   2
Write a C program to fill a rectangle using window scrolling   1
What is Your Name :)   1
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.   1
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help   5
 
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