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 |
Is it possible to initialize a variable at the time it was declared?
What are the different file extensions involved when programming in C?
Explain what is the benefit of using enum to declare a constant?
what are the stages of compilation
Why do we use pointer to pointer in c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
int i=0,j; j=++i + ++i ++i; printf(" %d",j);
what is the difference between embedded c and turbo c ?
What are linked lists in c?
What is header file in c?
What is multidimensional arrays
Give the Output : * * * * * * * * * *