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 swift based on c?
Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.
2 Answers Drona Solutions, Infosys, Vodafone, Webyog,
what is the difference between char * const and const char *?
Can we access array using pointer in c language?
Here is a neat trick for checking whether two strings are equal
What are static functions?
What is the purpose of void pointer?
What does the error message "DGROUP exceeds 64K" mean?
what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string
What is the difference between a function and a method in c?
Explain why c is faster than c++?
Is c pass by value or reference?