Find errors
(1) m = ++a*5;
(2) a = b ++ -c*2;
(3)y = sqrt (1000);
Answer Posted / pranav
2) has an error because the LVALUE (b++) is not yet
incremented before evaluation
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different types of data structures in c?
Tell me with an example the self-referential structure?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
Are pointers really faster than arrays?
Difference between constant pointer and pointer to a constant.
What is difference between arrays and pointers?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What does void main () mean?
What is the use of the function in c?
Write a program to swap two numbers without using a temporary variable?
What are inbuilt functions in c?
What is a buffer in c?
What is declaration and definition in c?
Who is the main contributor in designing the c language after dennis ritchie?
What is typedef example?