-
question
i have a few question that i dont understand please look in my code
Code:
#include<stdio.h>
#include<conio.h>
struct xxx
{
int aa;
double bb;
};
main()
{
struct xxx mm;
struct xxx *pp;
mm.aa=8;
mm.bb=23.2;
pp=&mm;
(*pp).aa=12; // what does this mean
pp->bb =97.2; // what does this mena
printf("%d%lf\n", mm.aa, mm.bb);
getch();
}
-
You again? You better ask all of your question in the same topic. And it would be much better if you just read a few good books and tuts on C.
* operator dereferences a pointer, so since it points to mm struct it's equivalent to
-------------------------------------
is exactly similar to
P.S. Show at least some appreciation sometime, y'know