n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Answer Posted / naresh lingampally
cool!!! ignoring the syntax errors;
n=7623
n/10== 762
result=>762*10+*;
this means that the result itself should be initialized to
'0' so that there would a right output..
So output will be garbage value ...
to my knowledge
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain enumerated types.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What is an array? What the different types of arrays in c?
How important is structure in life?
Why is this loop always executing once?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Explain what is the benefit of using #define to declare a constant?
What is && in c programming?
Suggesting that there can be 62 seconds in a minute?
Can you define which header file to include at compile time?
What is the most efficient way to count the number of bits which are set in an integer?
Write a program to find factorial of a number using recursive function.
Explain what does the format %10.2 mean when included in a printf statement?
What is return type in c?