1. main() { int x=10,y=15; x= x++; y= y++; printf("%d%d",x,y); } What is the output?
2. int a; if(a==0)printf("XYZ"); printf("XYZ"); What is the output?
3. int x; int modify(int x) { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; modify(x); x++; printf("%d",x); x++; changevalue(x); x++; modify(x); printf("%d",x); }
4. Difference between malloc and calloc and implement maoolc as calloc.
5. Implement realloc with full error checking code.
6. void main() { int x= 5; printf("%d%d%d",x,x<<2,x>>2); } 21. #define swap(a,b) a=a+b; b=a-b; a=a-b; void main() { int x=5, y=10; swap(x,y); printf("%d%d", x, y); swap2(x,y); printf("%d%d", x, y); } swap2(int a, int b) { int temp; temp=a; a=b; b=temp; } what is the Output?