thanks...
x[0]++ is it legal?
User Profile
Collapse
-
-
-
-
as i++ return the value before increment...so "static void addtwo " this function will give the ans 0+2=2 .....
is it right?
i have not the compiler so i'm asking....ok then goodbye...Leave a comment:
-
-
then plz change the title of the site
"Java Forum
Java programming help. Post your Java questions in this forum. "...Leave a comment:
-
java question
what is the correct answer of thes question....
public class par
{
public static void main (String[] args)
{
int i=0;
addtwo(i++)
system.out.prin tln(i);
}
static void addtwo(int i)
{
i+=2;
}
}
No activity results to display
Show More
Leave a comment: