Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?

Answer Posted / vikraman85

I think mostly we should avoid assigning the variables while
declaring with the variables of another datatype..

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abs() and fabs() functions?

841


What are the different categories of functions in c?

858


How can I sort a linked list?

796


What is a memory leak? How to avoid it?

861


How do we open a binary file in Read/Write mode in C?

950


What is the equivalent code of the following statement in WHILE LOOP format?

1074


What is a const pointer?

793


Explain the binary height balanced tree?

896


Is main an identifier in c?

830


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

1051


Explain how are portions of a program disabled in demo versions?

850


Why header files are used?

826


When do we get logical errors?

807


Is c is a high level language?

835


What is the method to save data in stack data structure type?

838