#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 47232main() {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 8237Post New GATE C Interview Questions
What are some best practices when writing test classes?
What is the use of uni-rexx?
Can you create an instance of a static class?
What do you mean by Set Analysis?
What is the use of spring orm?
What is a windows markup file?
What are the advantages of using rpa?
Define hard-driving or over-driving?
How Big is ‘Big Data’?
What is auto increment in sql?
What all steps are involved in creating planning groups and planning levels in cash management? What changes does it bring?
What are the two types of comments, and how do they differ?
What are the components of data integrator? : sap bobi
Which directory will you copy your new custom form, what would be its extension (.fmb or .fmx)?
Source File: Target EMPNO, SAL Empno, Format 101, 1000 101, 1000 101, 1100 101, 1000, 1100 101, 1000 101, 1000, 1100, 1000 101, 10000 101, 1000, 1100, 1000, 10000 102, 1100 102, 1100 102, 1300 102, 1100, 1300 102, 1200 102, 1100, 1300, 1200 102, 1500 102, 1100, 1300, 1200, 1500 How can i get that output using datastage(ETL) tool