#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct name
{
int a;
char b[10];
char c;
};
int main()
{
struct name *p;
char *n;
n = (char *)malloc(3 * sizeof(char)); // in this why 3 means.. its my condition
n = (char *)p;
n->a = 3; // this line is showing error why?
}
/////// This is my outline of my program .......Doubt is wheter we can assign character pointer to structure pointer.......if its true means why the last line is showing error can anyone solve this fully upto n[3] and print..............other condition is we have to give value for structure not by user.......