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 difference between structure and union?
Name the language in which the compiler of "c" in written?
Write a program to find the biggest number of three numbers in c?
write a program to print data of 5 five students with structures?
Why is c so powerful?
What is the difference between File pointer and Internal Charecter Pointer?
What is wrong in this statement? scanf(“%d”,whatnumber);
Explain what are reserved words?
WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }
Can we access array using pointer in c language?
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.
main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }