n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Answers were Sorted based on User's Feedback
Answer / vikesh
n=temp=762
the value of result depends on initial value of result
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / 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 |
Answer / bobby shankar
it will display something garbage
because value of result is not
initialised .
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / arif shaik
The variables n,tempand result what type data it may be?,It
first Displays an error "Statement missing ; in function
main". If it is rectified then the answer should depends on
data type of that variables and their initialized values.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vignesh1988i
assuming that the variables that are used above are integers....
the result will be : depends on the user....
| Is This Answer Correct ? | 0 Yes | 1 No |
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);
Which is an example of a structural homology?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the use of pragma in embedded c?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y
What is console in c language?
What are the advantages of using Unions?
plz answer.. a program that takes a string e.g. "345" and returns integer 345
write a program that explain #define and # undef directive
What does sizeof int return?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
write a program for odd numbers?