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 how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is nested structure in c?
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation
What is alloca() and why is its use discouraged?
regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression
What will be the result of the following C language program? main() { int a = 0; int b = 20; char x = 1; char y = 10; if(a,b,x,y) printf("Welcome"); }
What is typedef struct in c?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES
Is c procedural or object oriented?