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
What is the difference between fread and fwrite function?
Why shouldn’t I start variable names with underscores?
Write the control statements in C language
What is meant by inheritance?
Explain the use of bit fieild.
What is operator promotion?
What is the concatenation operator?
Can we use any name in place of argv and argc as command line arguments?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
show how link list can be used to repersent the following polynomial i) 5x+2
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain zero based addressing.
What are the storage classes in C?
Can we access the array using a pointer in c language?