Categories:
.NET (357)
C (330)
C++ (184)
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, 7502👍, 0💬
Popular Posts:
What is Shell scripting A shell script is a script written for the shell, or command line interprete...
How To Merge Values of Two Arrays into a Single Array? - PHP Script Tips - PHP Built-in Functions fo...
How can I execute a PHP script using command line? Just run the PHP CLI (Command Line Interface) pro...
Have you ever worked with Microsoft Application Blocks, if yes then which? Application Blocks are C#...
Managed Code and Unmanaged Code related ASP.NET - How do you hide Public .NET Classes and other publ...