Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38

1 Answers  


What is the difference between a string and an array?

0 Answers  


What is break in c?

0 Answers  


Here is a good puzzle: how do you write a program which produces its own source code as output?

0 Answers  


what is the use of operator ^ in C ? and how it works?

2 Answers  


Explain why c is faster than c++?

0 Answers  


The __________ attribute is used to announce variables based on definitions of columns in a table?

0 Answers  


how to create c progarm without void main()?

1 Answers   NIIT,


Why malloc is faster than calloc?

0 Answers  


how can u print a message without using any library function in c

1 Answers   NIIT,


Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.

6 Answers   FCI, TCS,


Write a code to generate divisors of an integer?

0 Answers   Ericsson,


Categories