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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the purpose of "extern" keyword in a function declaration?

625


What is the difference between typedef struct and struct?

603


Do string constants represent numerical values?

930


What is main () in c language?

605


Who developed c language and when?

590






What is #include cctype?

582


What is the difference between %d and %i?

598


Tell us two differences between new () and malloc ()?

617


What is a global variable in c?

595


Write a program with dynamically allocation of variable.

607


What is meant by 'bit masking'?

890


What tq means in chat?

584


How many bytes are occupied by near, far and huge pointers (dos)?

680


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

654


Explain can you assign a different address to an array tag?

649