ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
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 ?    8 Yes 8 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 ?    7 Yes 18 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 ?    2 Yes 3 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 ?    1 Yes 1 No
Mugdha
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
print ur name without using any semicolon in c/c++....  6
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +  1
what is the differance between pass by reference and pass by value. Infosys4
Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); } ADITI1
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
Predict the output or error(s) for the following: 25. main() { printf("%p",main); } ME3
how to convert binary to decimal and decimal to binary in C lanaguage  4
how to display 2-D array elements in spiral  1
what is diff b/w huge & far & near pointer?? HCL1
Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not Alcatel8
write a program that print itself even if the source file is deleted?  1
write a addition of two no. program with out using printf,scanf,puts .  3
char ch="{'H','I',0};printf("%s",ch);what is output Accenture9
WAP &#8211; represent a char in binary format Motorola4
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output? Hughes6
44.what is the difference between strcpy() and memcpy() function? 45.what is output of the following statetment? 46.Printf(“%x”, -1<<4); ? 47.will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); 48.write a string copy function routine? 49.swap two integer variables without using a third temporary variable? 50.how do you redirect stdout value from a program to a file? 51.write a program that finds the factorial of a number using recursion?  3
what will happen if you free a pointer twice after allocating memory dynamically ? Novell2
Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage Accenture5
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?  3
convert 12345 to 54321 withoutusing strig  3
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com