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, 7361👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - What is the difference between System exceptions and Application exceptio...
. How can a servlet refresh automatically if some new data has entered the database? You can use a c...
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
What are the two kinds of comments in JSP and what's the difference between them? <%-- JSP Co...
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...