printf("now %d charas print \n",printf("%d",a));
There you are printing a.
Type: Posts; User: Bayint Naung
printf("now %d charas print \n",printf("%d",a));
There you are printing a.
b = &b[0] // in expression
*b = *&b[0];
*& cancel
*b = b[0];
So you are getting first element of b. which is of type int. Why don't you go and try out and listen to what compiler...
Still don't get it? Pay attention to the line.
scanf("%d%d",&a,&b);
Enable compiler warning.
47th post? Still no code tag?
Why are you using g++. It's C++ compiler.
int a,b[100];
is b an int?
gcc -Wall will give you warning for that. Always enable warning and pay attention to...