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 the meaning of c in c language?
Explain how can I convert a number to a string?
What is pragma c?
Explain the concept and use of type void.
writ a program to compare using strcmp VIVA and viva with its output.
What is structure of c program?
difference between object file and executable file
write a program to display all prime numbers
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
How are strings stored in c?
What is type qualifiers?
Are pointers integers in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is meant by type casting?
What are the different types of linkage exist in c?