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
what is stack , heap ,code segment,and data segment
What is assert and when would I use it?
What is #include stdio h?
What is a c token and types of c tokens?
how is the examination pattern?
Between macros and functions,which is better to use and why?
plz let me know how to become a telecom protocol tester. thank you.
What is the difference between array_name and &array_name?
What is actual argument?
What is an lvalue?
What is difference between main and void main?
What are static variables in c?
How do you define structure?
What is unary operator?
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.