struct abc
{
unsigned int a;
char b;
float r;
};
struct xyz
{
int u;
struct abc tt;
}ww;
ww = (struct xyz*)malloc(sizeof(struct xyz));
will the memory be allocated for the inner structure also?
Answer / sadanand
Yes. when sizeof(xyz) is done. it will compute size of
struct abc + size of int
Is This Answer Correct ? | 4 Yes | 1 No |
Differentiate between new and malloc(), delete and free() ?
Write a program to swap two numbers without using third variable?
how c source file in converted to exe file
What is meant by int main ()?
Is there any restriction in how many arguments printf or scanf function can take? in which file in my c++ compiler i can see the code for implementation of these two functions??
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
how to print "hai" in c?
what do the 'c' and 'v' in argc and argv stand for?
is c language is a object oreinted language?
What is the value of h?
How to declare pointer variables?
What is a pointer and how it is initialized?