Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Function Calls
What will be printed as the result of the operation below:
#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\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
int swap2(int a, int b) {
int temp;
temp=a;
b=a;
a=temp;
return 0;
}
✍: FYIcenter
2007-02-26, 7102👍, 0💬
Popular Posts:
How To Calculate Expressions with SQL Statements? - MySQL FAQs - Introduction to SQL Basics There is...
Explain in detail the fundamental of connection pooling? When a connection is opened first time a co...
What metrics will you look at in order to see the project is moving successfully? Most metric sets d...
How To Add Column Headers to a Table? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells I...
Can Java object be locked down for exclusive use by a given thread? Yes. You can lock an object by p...