C Language MCQ - English
How will you free the allocated memory ?
Answer : B
Feel free to find and hire your online essay writer to help you with papers. AdvancedWriters will not let you down.
View More Related Question
1) What is the output of this C code(according to C99 standard)?
#include <stdio.h>
struct p {
int k;
char c;
float f;
};
int main()
{
struct p x = {.c = 97, .k = 1, 3};
printf("%f \n", x.f);
}
2) Which of the following cannot be a structure member?
3) What is the output of this C code?
#include <stdio.hgt;
void main()
{
struct student {
int no;
char name[20];
};
struct student s;
s.no = 8;
printf("%d", s.no);
}
4) What is the output of this C code?#include <stdio.h>
struct p {
int k;
char c;
float f;
};
int p = 10;
int main()
{
struct p x = {1, 97};
printf("%f %d\n", x.f, p);
}
5) What is the output of this C code(according to C99 standard)?
#include <stdio.h>
struct p {
int k;
char c;
float f;
};
int main()
{
struct p x = {.c = 97};
printf("%f\n", x.f);
}