Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Find errors
(1) m = ++a*5;
(2) a = b ++ -c*2;
(3)y = sqrt (1000);

Answers were Sorted based on User's Feedback



Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);..

Answer / sumalatha

b is the error because decrement of c is instead of --c it has -c

Is This Answer Correct ?    6 Yes 2 No

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);..

Answer / 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

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);..

Answer / renu

m will be error because the increment should be done before
the assignment symbol.

Is This Answer Correct ?    1 Yes 0 No

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);..

Answer / srikanth karnati

(2)HAS ERROR

Is This Answer Correct ?    1 Yes 0 No

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);..

Answer / 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

More C Interview Questions

1 232 34543 4567654 can anyone tell me how to slove this c question

6 Answers  


What is the difference between array and structure in c?

0 Answers  


What does %2f mean in c?

0 Answers  


what is the stackpointer

2 Answers  


how to go with this?

1 Answers   Wipro,


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


What do you mean by c what are the main characteristics of c language?

0 Answers  


WHAT IS MEANT BY LIFE?

2 Answers  


Explain the differences between public, protected, private and internal.

2 Answers  


every function has return the value?

1 Answers  


what is the function of .h in #include<stdio.h> in c ?

23 Answers   HCL, IBM, Wipro,


Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 Answers  


Categories