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 |
how to multiply two number taking input as a string (considering sum and carry )
what is the difference between declaration and definition of a variable or function ?
why return type of main is not necessary in linux
Explain how do you override a defined macro?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is a #include preprocessor?
Can we change the value of #define in c?
what is difference between array,strutter,union and pointers
3 Answers CTS, Lovely Professional University, Mannar Company,
How do I initialize a pointer to a function?
How to find the usage of memory in a c program
What does stand for?