struct node
{
int *a;
char *b;
char array[12];
};
struct node m,*n;
assign the value in *a,*b,char array[12]
Answers were Sorted based on User's Feedback
Answer / varun
m.a=(int*)malloc(4);
*(m.a)=2;
m.b=(char*)malloc(10);
m.b="hello";
strcpy(m.array,"world");
n=(struct node*)malloc(sizeof(struct node));
n->a=(int*)malloc(4);
*(n->a)=2;
n->b=(char*)malloc(10);
n->b="hello";
strcpy(n->array,"world");
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / aravind
struct node
{
int *a;
char *b;
char array[12];
};
struct node m,*n;
m->a*=5;
m->*b='c';
m.array[12]={"aravind");
| Is This Answer Correct ? | 1 Yes | 2 No |
/* hello i am ricky dobriyal */
struct node
{
int *a;
char *b;
char array[12];
};
struct node m,*n;
n->a=10;
n->b='5';
m.array="ricky dobriyal";
| Is This Answer Correct ? | 0 Yes | 2 No |
What do you mean by c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is the purpose of the preprocessor directive error?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
How can I access a memory located at certain address?
Why cann't whole array can be passed to function as value.
what is available in C language but not in C++?
10 Answers CTS, TCS,
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
What is atoi and atof in c?
read a number & print all its devisors using c-program?
What is string length in c?
What do you mean by c what are the main characteristics of c language?