how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a.p=p+x;
q=q+y
b.p=p+xq=q+y
c.p=p+xq;
q=q+y
d.p=p+x/q=q+y

Answers were Sorted based on User's Feedback



how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; ..

Answer / sundeep

a.p=p+x;
q=q+y

Is This Answer Correct ?    55 Yes 5 No

how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; ..

Answer / bibaswan.guha

Venkat can you please explain why the behaviour is going to
be like this (what you have mentioned) ?
Because the ";" should be signifying the termination for
the first line.

Is This Answer Correct ?    9 Yes 1 No

how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; ..

Answer / santhosh

all answers are wrong because

suppose for example can u give like i=i+1;
it it interprets as i+=1

so here it interprets as p+=x;
q+=;

Is This Answer Correct ?    7 Yes 7 No

how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; ..

Answer / venkat

b.p=p+xq=q+y

Is This Answer Correct ?    3 Yes 21 No

Post New Answer

More C Interview Questions

Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

12 Answers   MIT, TCS,


what is c programing

11 Answers   Wipro,


Reverse a string word by word??

9 Answers  


write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..

10 Answers   Bosch, Mind Tree,


Why & is used in scanf in c?

0 Answers  






In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

0 Answers  


what is use#in c

3 Answers  


what is the difference between auto and static keywords

1 Answers   cDot, College School Exams Tests, TCS,


what is pointer?

4 Answers  


write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.

6 Answers  


What are the types of macro formats?

0 Answers  


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

0 Answers  


Categories