i am trying to assing value to a structure member using pointer and then increment and print it .so i write the following code.not working though.how to fix this or how can i do something like this.help please
#include<stdio.h>
#include<stdlib.h>
typedef struct{
int count;
}number;
int main()
{
number *p;
p->count=0;
for (p->count=0;p->count<5;(p->count)++){
printf("%s",p->count)count;
}
getch();
}