Write a C program to multiply tho numbers without using
arithmetic operator (+, -, *, /).
Answer / taz
int a=5,b=2,c,i,j;
for(i=1;i<=a;i++)
for(j=1;j<=b;j++)
c++;
printf("%d",c);
Is This Answer Correct ? | 5 Yes | 1 No |
What is strcmp in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
how can i get output like this? 1 2 3 4 5 6
What is the difference between a function and a method in c?
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
What is #include stdlib h?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Write a program to find the biggest number of three numbers in c?
program to find the roots of a quardratic equation
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Why do we use header files in c?
What is the difference between struct and typedef struct in c?