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

What is the use of typedef in structure in c?

0 Answers  


the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0

1 Answers  


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  


main() { printf("hello%d",print("QUARK test?")); }

5 Answers  


Can we access array using pointer in c language?

0 Answers  






DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?

2 Answers   Wipro,


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


What is class and object in c?

0 Answers  


helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe

2 Answers  


Why is struct padding needed?

0 Answers  


Categories