Find errors
(1) m = ++a*5;
(2) a = b ++ -c*2;
(3)y = sqrt (1000);
Answer Posted / anand
1. compiler gives syntax error there should be any space
between increment or decrement operators and the variable.
2. even if some compilers accept this, then b++ - c*2 is
considered where c*2 is subtracted from the present value of
variable b and after that the value in variable b is
decremented by 1.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Is c is a procedural language?
Explain the use of 'auto' keyword
What is spaghetti programming?
i want to know the procedure of qualcomm for getting a job through offcampus
What are the three constants used in c?
How the c program is executed?
What is chain pointer in c?
What is the benefit of using an enum rather than a #define constant?
How can I read and write comma-delimited text?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Who developed c language and when?
Tell us bitwise shift operators?
What is the use of the function in c?
What is the meaning of typedef struct in c?
What is the difference between if else and switchstatement