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 resultof the operation below:
int x;
int modifyvalue() {
return(x+=10);
}
int changevalue(int x) {
return(x+=1);
}
void main() {
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
}
✍: FYIcenter
Answer: 12 , 13 , 13
2007-02-26, 7303👍, 0💬
Popular Posts:
How To Create an Array in PL/SQL? - Oracle DBA FAQ - Introduction to PL/SQL If you want create an ar...
What is the benefit of using #define to declare a constant? Using the #define method of declaring a ...
How To Wirte a Simple JUnit Test Class? This is a common test in a job interview. You should be able...
What print out will the folloging code produce? main() { char *p1=“name”; char *p2; p2=(char*)malloc...
Why is there extra white space before or after tables? This is often caused by invalid HTML syntax. ...