Write an algorithm for a program that receives an integer as
input and outputs
the product of of its digits. E.g. 1234 = 24, 705 = 0
Answer Posted / pavithra
jus use an array to store d i/p
nd multiply the array elements
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Why is event driven programming or procedural programming, better within specific scenario?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Linked lists -- can you tell me how to check whether a linked list is circular?
What does sizeof return c?
What is equivalent to ++i+++j?
What are the various types of control structures in programming?
What is s or c?
What is the scope of static variable in c?
Explain what is the benefit of using enum to declare a constant?
Why do some versions of toupper act strangely if given an upper-case letter?
What are run-time errors?
What is the use of #include in c?
c language interview questions & answer
Write a code to remove duplicates in a string.