K
kunal s patel
Hi,
I am new to C programming. Here is what I am trying to do
typedef struct A {
char *a;
}A;
struct B {
int b;
A *asample;
};
void main()
{
struct B bk;
}
Now I want to allocate Hello to bk->asample->a. How do I proceed here. Any
help will be appreciated
Thanks,
Kunal
I am new to C programming. Here is what I am trying to do
typedef struct A {
char *a;
}A;
struct B {
int b;
A *asample;
};
void main()
{
struct B bk;
}
Now I want to allocate Hello to bk->asample->a. How do I proceed here. Any
help will be appreciated
Thanks,
Kunal