how to multiply two number taking input as a string
(considering sum and carry )

Answers were Sorted based on User's Feedback



how to multiply two number taking input as a string (considering sum and carry )..

Answer / vengat

int i, b;
char a[4] = "63";
for (i = 0;i < 1;i++)
{

b = (a[i] - 48)+(a[i+1]-48);
printf("%d\n", b);
}

Is This Answer Correct ?    0 Yes 1 No

how to multiply two number taking input as a string (considering sum and carry )..

Answer / ravi

char a[3];
int i;
char s[3];
for(i=1;i<=3;i++)
s[i]=a[i]*2;
printf("%s",s[i]);

Is This Answer Correct ?    5 Yes 18 No

Post New Answer

More C Interview Questions

hi, which software companys will take,if d candidate's % is jst 55%?

0 Answers  


What is static and volatile in c?

0 Answers  


what is the use of a array in c

6 Answers  


What are the basic data types associated with c?

0 Answers  


Write a program which returns the first non repetitive character in the string?

0 Answers   Expedia,






What is strcpy() function?

0 Answers  


What is data structure in c programming?

0 Answers  


what information does the header files contain?

6 Answers   BSNL, Cisco, GDA Technologies,


who developed c and why he developed c?

5 Answers  


why division operator not work in case of float constant?

2 Answers  


What are the valid places to have keyword “break”?

0 Answers  


What is a pointer?

1 Answers   ADP, IFFCO,


Categories