How will you free the allocated memory ?

Home | Discussion Forum
Taiyari24Hour

How will you free the allocated memory ?



View More Related Question

2) Can the below code be compiled successfully?

#include <stdio.h>
struct p {
int k;
char c;
float f;
};
int main()
{
struct p x = {.c = 97, .f = 3, .k = 1};
printf("%f\n", x.f);
}

3) What is the output of this C code?

#include <stdio.h>
struct student {
int no;
char name[20];
}
void main()
{
struct student s;
s.no = 8;
printf("hello");
}

4) What is the output of this C code?

#include <stdio.h>
struct {
int k;
char c;
} p;
int p = 10;
int main()
{
p.k = 10;
printf("%d %d\n", p.k, p);
}

5) Number of bytes in memory taken by the below structure is

#include <stdio.h>
struct test {
int k;
char c;
};

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.