n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}

Answers were Sorted based on User's Feedback



n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

Answer / guest

3267

Is This Answer Correct ?    12 Yes 7 No

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

Answer / vikesh

n=temp=762
the value of result depends on initial value of result

Is This Answer Correct ?    8 Yes 3 No

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

Answer / shruti

the answer depends upon, to what value result is
initialised..

Is This Answer Correct ?    6 Yes 2 No

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

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

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

Answer / bobby shankar

it will display something garbage
because value of result is not
initialised .

Is This Answer Correct ?    2 Yes 0 No

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

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

n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } ..

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

Post New Answer

More C Interview Questions

How can I get back to the interactive keyboard if stdin is redirected?

0 Answers  


write a function for strtok()??

2 Answers   Verifone,


Explain function?

0 Answers  


what is self refrential structure

3 Answers   HCL,


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

0 Answers  






How do you override a defined macro?

0 Answers  


ratio,age,persentage

0 Answers  


Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 Answers  


compare array with pointer?

1 Answers  


without a terminator how can we print a message in a printf () function.

7 Answers   NIIT,


What is an array in c?

0 Answers  


What is c standard library?

0 Answers  


Categories