to XWB,
using ur code(modification) my program is executing well.but i want to know why my code is not doing well.
char *names[6] in this cose 'names' is an array of pointers to string.
so whwn i m using
scanf("%s",names[i]); this...
void main()
{
char *names[6];
int i;
for(i=0;i<6;i++)
{
scanf("%s",names[i]);
}
getch();
}
i am writing this code and compiller is not giving any error.i am using dev c++.why error?
public void setMyNumber(int d) {
this.myNumber = myNumber;
}
in your code above you are not using the value that you have passed in "d". you are simply assigning a non-static int variable to itself.
and the reason behind why it is printing value "0" is that when a primitive veriable gets a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.