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


Please Help Members By Posting Answers For Below Questions

Explain enumerated types.

592


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

627


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

576


What is an array? What the different types of arrays in c?

647


How important is structure in life?

580






Why is this loop always executing once?

607


.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; }

1982


Explain what is the benefit of using #define to declare a constant?

599


What is && in c programming?

667


Suggesting that there can be 62 seconds in a minute?

589


Can you define which header file to include at compile time?

573


What is the most efficient way to count the number of bits which are set in an integer?

578


Write a program to find factorial of a number using recursive function.

632


Explain what does the format %10.2 mean when included in a printf statement?

769


What is return type in c?

633