main()
{int a=200*200/100;
printf("%d",a);
}

Answer Posted / vishi

200*200=40000;
as the range of int(-32768 to +32767)
40000 exeeds +32767 &hence goes to the other side,
40000-32767=7233;
now (-32768+7233)=(-25535);
hence the value of 40000 will be -25535;
result be (-25535/100)="-255"(integer value).

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

708


Explain high-order and low-order bytes.

770


Explain the priority queues?

725


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1424


How can you find the exact size of a data type in c?

684






Why do we use int main?

713


simple program of graphics and their output display

1575


How can I call a function with an argument list built up at run time?

740


What is volatile variable in c with example?

676


Explain what is a static function?

721


Why is python slower than c?

705


i have a written test for microland please give me test pattern

2305


What functions are used in dynamic memory allocation in c?

690


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

760


Can you tell me how to check whether a linked list is circular?

904