how to multiply two number taking input as a string
(considering sum and carry )
Answers were Sorted based on User's Feedback
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 |
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 |
hi, which software companys will take,if d candidate's % is jst 55%?
What is static and volatile in c?
what is the use of a array in c
What are the basic data types associated with c?
Write a program which returns the first non repetitive character in the string?
What is strcpy() function?
What is data structure in c programming?
what information does the header files contain?
6 Answers BSNL, Cisco, GDA Technologies,
who developed c and why he developed c?
why division operator not work in case of float constant?
What are the valid places to have keyword “break”?
What is a pointer?