Login and Register ×
Check your Email for the OTP
#include struct student { char *name; }; struct student s; struct student fun(void) { s.name = "newton"; printf("%s\n", s.name); s.name = "alan"; return s; } void main() { struct student m = fun(); printf("%s\n", m.name); m.name = "turing"; printf("%s\n", s.name); }
#include struct student { int no; char name[20]; } void main() { struct student s; s.no = 8; printf("hello"); }
#include struct student { int no; char name[20]; }; void main() { student s; s.no = 8; printf("hello"); }
#include void main() { struct student { int no; char name[20]; }; struct student s; no = 8; printf("%d", no); }
#include struct p { int k; char c; }; int p = 10; int main() { struct p x; x.k = 10; printf("%d %d\n", x.k, p); }
#include struct p { int k; char c; float f; }; int main() { struct p x = {.c = 97, .k = 1, 3}; printf("%f \n", x.f); }
#include struct point { int x; int y; }; int main() { struct point p = {1}; struct point p1 = {1}; if(p == p1) printf("equal\n"); else printf("not equal\n"); }
#include struct point { int x; int y; }; struct notpoint { int x; int y; }; int main() { struct point p = {1}; struct notpoint p1 = p; printf("%d\n", p1.x); }
Q: What is the output of this C code?
Q: Which of the following are themselves a collection of different data types?
Q: Which operator connects the structure name to its member name?
Q: What is the output of this C code(according to C99 standard)?