Find errors
(1) m = ++a*5;
(2) a = b ++ -c*2;
(3)y = sqrt (1000);
Answer Posted / sumalatha
b is the error because decrement of c is instead of --c it has -c
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What are keywords in c with examples?
Write a program to know whether the input number is an armstrong number.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the Purpose of 'extern' keyword in a function declaration?
What are nested functions in c?
What is static volatile in c?
Write a program which returns the first non repetitive character in the string?
What are the advantages of using macro in c language?
How can you read a directory in a C program?
Explain what are multibyte characters?
What is sorting in c plus plus?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is integer constants?
What is the explanation for cyclic nature of data types in c?