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
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 |
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 |
What is the difference between scanf and fscanf?
What are loops in c?
Difference between Class and Struct.
13 Answers Ericsson, Motorola, Wipro,
what is the return type of printf
int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf("b"); n++; continue; default : printf("c"); break; } break; }
Can stdout be forced to print somewhere other than the screen?
What is wrong with this statement? Myname = 'robin';
Explain what is wrong with this program statement?
What are the different types of pointers?
read an array and search an element
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
5 Answers TCS, Vimukti Technologies,
A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.