Q. | What will be output of following c program? #include
int main(){
float *p=(float *)1000;
float *q=(float *)2000;
printf("Difference=%d",q-p);
return 0;
}
|
|||||||
|
Answer: | Option B | |
Explaination: | q-p=(2000-100)/sizeof(float) =1000/4
=250
|
Discussion
Your Comments Goes here... |
Name | Discussion |
---|