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 |
how to go with this?
What is declaration and definition in c?
What is Full Form of C and Why We use C
Is c pass by value or reference?
Is c++ based on c?
character array A[12] can hold
Can a pointer be volatile in c?
main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason
Explain the difference between getch() and getche() in c?
Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?
What do you mean by c what are the main characteristics of c language?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,