These programs were asked in various colleges/universities across India. These Questions were in my email dated 1999. So please let me know if any copyright information, so that I will remove it. But these questions are very much helpful for budding Student (engineers and interviewees). // Carefully study the given program #include <stdio.h> #include <alloc.h> void main(void); typedef struct NType { int i; char c; long x; }NewType; void main(void) { NewType *c; c=(NewType*)malloc(sizeof(NewType)); c->i=100; c->c='C'; (*c).x=100l; printf("%d,%c,%4ld",c->i,c->c,c->x); } /* What is the output of this program ? a) It will produce a variable redefinition error b) It w...
Its all about Network Simulations (NS2, NS3), Internet of Things, Sensor Networks, Programming, Embedded Systems, Cyber Physical Systems, etc