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

What is the meaning of c in c language?

599


Explain how can I convert a number to a string?

652


What is pragma c?

620


Explain the concept and use of type void.

632


writ a program to compare using strcmp VIVA and viva with its output.

1529






What is structure of c program?

609


difference between object file and executable file

6101


write a program to display all prime numbers

1461


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

2728


How are strings stored in c?

599


What is type qualifiers?

668


Are pointers integers in c?

615


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

672


What is meant by type casting?

631


What are the different types of linkage exist in c?

615