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...


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

Give basis knowledge of web designing ...

0 Answers   HCL,


What are shell structures used for?

0 Answers  


Write a program to exchange two variaables without temp

9 Answers   Geometric Software,


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

0 Answers  


Write a program to generate prime factors of a given integer?

9 Answers   Microsoft,


Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)

1 Answers   HTC,


What are data structures in c and how to use them?

0 Answers  


What is structure in c definition?

0 Answers  


Write a program to print fibonacci series using recursion?

0 Answers  


what are advantages of U D F?

1 Answers   Google,


print ur name without using any semicolon in c/c++....

21 Answers   Bosch, TCS, Wipro,


Categories