#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }
14 47445main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?
1 8277Post New GATE C Interview Questions
Explain splicing of arrays?
Is linux illegal?
What is sortedmap interface?
How to migrate running instances from one openstack compute server to another openstack compute server?
How do ethical concerns differ between general-purpose AI and domain-specific AI?
what is the role of transformer?
What is CIM?
Does cp command overwrite files?
What is the difference between abstract class vs interface? Can give me the real time examples?
What is fact table? Explain the different kinds of facts.
How can a transformation be made reusable?
What is null pointer and what is its use?
What is the difference between 8085 microprocessor and 8086 microprocessor?
What is the limitation of cod?
Explain imei?